diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-13 09:30:41 +0000 |
| commit | e74101e4eff767325553039def89de70b70f36d3 (patch) | |
| tree | b19b15290ce2e0d3c58bac59a2bcb0295e1af757 /lib/libc/stdio/vsscanf.c | |
| parent | 149004e99dc4abe92b530803e963e50943750f40 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/vsscanf.c')
| -rw-r--r-- | lib/libc/stdio/vsscanf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/vsscanf.c b/lib/libc/stdio/vsscanf.c index 6841fc48fbf5..58778f661ae3 100644 --- a/lib/libc/stdio/vsscanf.c +++ b/lib/libc/stdio/vsscanf.c @@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$"); #include <stdio.h> #include <string.h> +#include "local.h" static int eofread(void *, char *, int); @@ -64,6 +65,7 @@ vsscanf(str, fmt, ap) _BSD_VA_LIST_ ap; { FILE f; + struct __sFILEX ext; f._file = -1; f._flags = __SRD; @@ -72,5 +74,7 @@ vsscanf(str, fmt, ap) f._read = eofread; f._ub._base = NULL; f._lb._base = NULL; + f._extra = &ext; + INITEXTRA(&f); return (__svfscanf(&f, fmt, ap)); } |
