diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-12 06:20:57 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-12 06:20:57 +0000 |
commit | 5311ac7740ee9bd7bd75be2a8d883b7b52e5f1d1 (patch) | |
tree | 6cdc42effe4a6fde9be421d0366ce15983dc634f | |
parent | 94e5281fc15c5a5216d2320e4fa474cf3986da2f (diff) |
Oops, missed a 0 vs. '\0'
-rw-r--r-- | lib/libc/stdio/snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c index 9523431bf00..5bd97f0bead 100644 --- a/lib/libc/stdio/snprintf.c +++ b/lib/libc/stdio/snprintf.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: snprintf.c,v 1.5 1998/01/12 06:14:31 millert Exp $"; +static char rcsid[] = "$OpenBSD: snprintf.c,v 1.6 1998/01/12 06:20:56 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <limits.h> @@ -75,7 +75,7 @@ snprintf(str, n, fmt, va_alist) f._bf._size = f._w = n ? n - 1 : 0; ret = vfprintf(&f, fmt, ap); if (n) - *f._p = 0; + *f._p = '\0'; va_end(ap); return (ret); } |