Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.bin/hexdump Pull up revision 1.9 (requested by itoj...
details: https://anonhg.NetBSD.org/src/rev/6cdc9967a2c8
branches: netbsd-1-4
changeset: 471032:6cdc9967a2c8
user: he <he%NetBSD.org@localhost>
date: Thu Oct 12 21:40:29 2000 +0000
description:
Pull up revision 1.9 (requested by itojun):
Fix string length computation bug. Fixes PR#8676.
diffstat:
usr.bin/hexdump/parse.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a1eff3f6194b -r 6cdc9967a2c8 usr.bin/hexdump/parse.c
--- a/usr.bin/hexdump/parse.c Thu Oct 12 21:35:25 2000 +0000
+++ b/usr.bin/hexdump/parse.c Thu Oct 12 21:40:29 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.8 1998/12/19 16:43:39 christos Exp $ */
+/* $NetBSD: parse.c,v 1.8.2.1 2000/10/12 21:40:29 he 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 1998/12/19 16:43:39 christos Exp $");
+__RCSID("$NetBSD: parse.c,v 1.8.2.1 2000/10/12 21:40:29 he 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