Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.bin/hexdump Pullup 1.9 [itojun]:



details:   https://anonhg.NetBSD.org/src/rev/add79b6fef6b
branches:  netbsd-1-5
changeset: 489828:add79b6fef6b
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Oct 17 21:20:15 2000 +0000

description:
Pullup 1.9 [itojun]:
string length computation bug.  PR 8676.

diffstat:

 usr.bin/hexdump/parse.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3a65736c7c76 -r add79b6fef6b usr.bin/hexdump/parse.c
--- a/usr.bin/hexdump/parse.c   Tue Oct 17 21:18:46 2000 +0000
+++ b/usr.bin/hexdump/parse.c   Tue Oct 17 21:20:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.8.10.1 2000/10/17 01:32:31 tv Exp $        */
+/*     $NetBSD: parse.c,v 1.8.10.2 2000/10/17 21:20:15 tv Exp $        */
 
 /*
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)parse.c    8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: parse.c,v 1.8.10.1 2000/10/17 01:32:31 tv Exp $");
+__RCSID("$NetBSD: parse.c,v 1.8.10.2 2000/10/17 21:20:15 tv Exp $");
 #endif
 #endif /* not lint */
 
@@ -396,7 +396,7 @@
                         */
                        savech = *p2;
                        p1[0] = '\0';
-                       pr->fmt = emalloc(strlen(fmtp) + 2);
+                       pr->fmt = emalloc(strlen(fmtp) + strlen(cs) + 1);
                        (void)strcpy(pr->fmt, fmtp);
                        (void)strcat(pr->fmt, cs);
                        *p2 = savech;



Home | Main Index | Thread Index | Old Index