Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/ekermit/dist properly size a buffer to include ...



details:   https://anonhg.NetBSD.org/src/rev/e04cc57ce710
branches:  trunk
changeset: 961570:e04cc57ce710
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Apr 12 08:55:22 2021 +0000

description:
properly size a buffer to include the trailing nul.

diffstat:

 external/bsd/ekermit/dist/kermit.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cb073fb50e81 -r e04cc57ce710 external/bsd/ekermit/dist/kermit.c
--- a/external/bsd/ekermit/dist/kermit.c        Mon Apr 12 08:54:11 2021 +0000
+++ b/external/bsd/ekermit/dist/kermit.c        Mon Apr 12 08:55:22 2021 +0000
@@ -1291,7 +1291,7 @@
     UCHAR c;                            /* Workers */
     int aln, i, rc;
 
-    UCHAR sizebuf[SIZEBUFL];
+    UCHAR sizebuf[SIZEBUFL+1];
 
     rc = -1;
     while ((c = *s++)) {               /* Get attribute tag */



Home | Main Index | Thread Index | Old Index