diff options
| author | David Schultz <das@FreeBSD.org> | 2008-06-29 22:54:26 +0000 |
|---|---|---|
| committer | David Schultz <das@FreeBSD.org> | 2008-06-29 22:54:26 +0000 |
| commit | e62e5ff93f7d3aa26a498650a74709f6ff28845b (patch) | |
| tree | 0ea254ca1f45c1de7d502552b791ca46b755720d /lib/libc/stdio/vfwprintf.c | |
| parent | 07bed96bd35e0832066e9047db5e8ca223e6ae57 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/vfwprintf.c')
| -rw-r--r-- | lib/libc/stdio/vfwprintf.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfwprintf.c b/lib/libc/stdio/vfwprintf.c index eb51c6dd7d9f..6b4e9b1425fd 100644 --- a/lib/libc/stdio/vfwprintf.c +++ b/lib/libc/stdio/vfwprintf.c @@ -559,7 +559,10 @@ __vfwprintf(FILE *fp, const wchar_t *fmt0, va_list ap) int hold = nextarg; \ if (argtable == NULL) { \ argtable = statargtable; \ - __find_warguments (fmt0, orgap, &argtable); \ + if (__find_warguments (fmt0, orgap, &argtable)) { \ + ret = EOF; \ + goto error; \ + } \ } \ nextarg = n2; \ val = GETARG (int); \ @@ -683,8 +686,11 @@ reswitch: switch (ch) { nextarg = n; if (argtable == NULL) { argtable = statargtable; - __find_warguments (fmt0, orgap, - &argtable); + if (__find_warguments (fmt0, orgap, + &argtable)) { + ret = EOF; + goto error; + } } goto rflag; } |
