1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

* stdio-common/printf_fp.c (___printf_fp): Give wide outout code

the same treatment as narow output code in last patch.
This commit is contained in:
Ulrich Drepper
2008-07-26 16:32:59 +00:00
parent ff0bf75374
commit 1311b164df
3 changed files with 9 additions and 0 deletions

View File

@@ -1204,6 +1204,10 @@ ___printf_fp (FILE *fp,
#ifdef COMPILE_WPRINTF
wstartp = _i18n_number_rewrite (wstartp, wcp,
wbuffer + wbuffer_to_alloc);
wcp = wbuffer + wbuffer_to_alloc;
assert ((uintptr_t) wbuffer <= (uintptr_t) wstartp);
assert ((uintptr_t) wstartp
< (uintptr_t) wbuffer + wbuffer_to_alloc);
#else
tmpptr = _i18n_number_rewrite (tmpptr, cp, buffer_end);
cp = buffer_end;