From ee137761980c8bbf0030dc1e0264a63afacd8d52 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Fri, 19 Feb 1993 14:22:43 +0000 Subject: [PATCH] Part of Guy Harris' Jan-93 rewrite, including: Leave room for the extra '\0' that "process()" puts at the end of the buffer. --- src/ascmagic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ascmagic.c b/src/ascmagic.c index 531a999d..1b21396c 100644 --- a/src/ascmagic.c +++ b/src/ascmagic.c @@ -36,7 +36,7 @@ #ifndef lint static char *moduleid = - "@(#)$Id: ascmagic.c,v 1.11 1992/09/11 10:08:52 ian Exp $"; + "@(#)$Id: ascmagic.c,v 1.12 1993/02/19 14:22:43 ian Exp $"; #endif /* lint */ /* an optimisation over plain strcmp() */ @@ -49,7 +49,7 @@ int nbytes; /* size actually read */ { int i, isblock, has_escapes = 0; unsigned char *s; - char nbuf[HOWMANY]; + char nbuf[HOWMANY+1]; /* one extra for terminating '\0' */ char *token; register struct names *p; -- 2.40.0