Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vgrind/RETEST sscanf overrun
details: https://anonhg.NetBSD.org/src/rev/9cde6c27003a
branches: trunk
changeset: 547361:9cde6c27003a
user: itojun <itojun%NetBSD.org@localhost>
date: Sat May 17 14:58:19 2003 +0000
description:
sscanf overrun
diffstat:
usr.bin/vgrind/RETEST/retest.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a91e4c2a7a8b -r 9cde6c27003a usr.bin/vgrind/RETEST/retest.c
--- a/usr.bin/vgrind/RETEST/retest.c Sat May 17 14:56:40 2003 +0000
+++ b/usr.bin/vgrind/RETEST/retest.c Sat May 17 14:58:19 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: retest.c,v 1.3 2000/06/23 15:40:13 aymeric Exp $ */
+/* $NetBSD: retest.c,v 1.4 2003/05/17 14:58:19 itojun Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)retest.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$NetBSD: retest.c,v 1.3 2000/06/23 15:40:13 aymeric Exp $";
+static char rcsid[] = "$NetBSD: retest.c,v 1.4 2003/05/17 14:58:19 itojun Exp $";
#endif /* not lint */
#include <ctype.h>
@@ -64,7 +64,7 @@
while (1) {
printf ("\nexpr: ");
- scanf ("%s", reg);
+ scanf ("%131s", reg);
ireg = convexp(reg);
match = ireg;
while(*match) {
Home |
Main Index |
Thread Index |
Old Index