diff options
author | 1998-01-12 06:20:56 +0000 | |
---|---|---|
committer | 1998-01-12 06:20:56 +0000 | |
commit | d5329f92e5caf35a6088aa1b7781df6a8ee87bf5 (patch) | |
tree | 658a857f477da3759be9472dd63b759d0b4bda82 /lib/libc/stdio/snprintf.c | |
parent | typo (diff) | |
download | wireguard-openbsd-d5329f92e5caf35a6088aa1b7781df6a8ee87bf5.tar.xz wireguard-openbsd-d5329f92e5caf35a6088aa1b7781df6a8ee87bf5.zip |
Oops, missed a 0 vs. '\0'
Diffstat (limited to 'lib/libc/stdio/snprintf.c')
-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); } |