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/9d1228bb81ca
branches:  trunk
changeset: 1020429:9d1228bb81ca
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 c85ca771ff50 -r 9d1228bb81ca 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