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/895460697190
branches: trunk
changeset: 961195:895460697190
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 10a56a6808ad -r 895460697190 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