diff options
| author | mycroft <mycroft@NetBSD.org> | 2000-01-21 19:51:36 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 2000-01-21 19:51:36 +0000 |
| commit | 442e96d2302b5bc33d54817d451d0cc7414dccf2 (patch) | |
| tree | 8b70c3ca9605413bfc6514c3e539367e0eb6a410 /lib/libc/stdio/snprintf.c | |
| parent | 2d0426d8d2a7ac9959e4095cfb4c011df2dc9c06 (diff) | |
Initialize f._file for locking primitives.
Diffstat (limited to 'lib/libc/stdio/snprintf.c')
| -rw-r--r-- | lib/libc/stdio/snprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c index 540afda1b67..7ba27677d19 100644 --- a/lib/libc/stdio/snprintf.c +++ b/lib/libc/stdio/snprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: snprintf.c,v 1.10 1999/09/20 04:39:33 lukem Exp $ */ +/* $NetBSD: snprintf.c,v 1.11 2000/01/21 19:51:37 mycroft Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)snprintf.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: snprintf.c,v 1.10 1999/09/20 04:39:33 lukem Exp $"); +__RCSID("$NetBSD: snprintf.c,v 1.11 2000/01/21 19:51:37 mycroft Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -85,6 +85,7 @@ snprintf(str, n, fmt, va_alist) #else va_start(ap); #endif + f._file = -1; f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *)str; f._bf._size = f._w = n - 1; |
