Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdio PR/42466: Yasuoka Masahiko: vsnprintf_ss() ca...
details: https://anonhg.NetBSD.org/src/rev/fcf6763bc986
branches: trunk
changeset: 750118:fcf6763bc986
user: christos <christos%NetBSD.org@localhost>
date: Thu Dec 17 15:19:48 2009 +0000
description:
PR/42466: Yasuoka Masahiko: vsnprintf_ss() causes infinite loop
diffstat:
lib/libc/stdio/vsnprintf_ss.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 8355c19bffe2 -r fcf6763bc986 lib/libc/stdio/vsnprintf_ss.c
--- a/lib/libc/stdio/vsnprintf_ss.c Thu Dec 17 15:01:33 2009 +0000
+++ b/lib/libc/stdio/vsnprintf_ss.c Thu Dec 17 15:19:48 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vsnprintf_ss.c,v 1.8 2009/10/25 20:44:13 christos Exp $ */
+/* $NetBSD: vsnprintf_ss.c,v 1.9 2009/12/17 15:19:48 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)vsnprintf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: vsnprintf_ss.c,v 1.8 2009/10/25 20:44:13 christos Exp $");
+__RCSID("$NetBSD: vsnprintf_ss.c,v 1.9 2009/12/17 15:19:48 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -164,7 +164,8 @@
for (;;) {
while (*fmt != '%' && *fmt) {
ret++;
- PUTCHAR(*fmt++);
+ PUTCHAR(*fmt);
+ fmt++;
}
if (*fmt == 0)
goto done;
Home |
Main Index |
Thread Index |
Old Index