summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vsscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/vsscanf.c')
-rw-r--r--lib/libc/stdio/vsscanf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/stdio/vsscanf.c b/lib/libc/stdio/vsscanf.c
index 6841fc4..58778f6 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));
}
OpenPOWER on IntegriCloud