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/d0846affbce9
branches:  trunk
changeset: 982394:d0846affbce9
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 9e909fd31409 -r d0846affbce9 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