mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
[BZ #6698]
* stdio-common/_i18n_number.h (_i18n_number_rewrite): Take additional parameter for end of buffer. If temporary copy is too large use malloc. * stdio-common/vfprintf.c: Adjust for _i18n_number_rewrite interface change. * stdio-common/printf_fp.c (__printf_fp): Likewise.. Account for string rewrite when allocating buffer.
This commit is contained in:
@@ -625,7 +625,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
|
||||
thousands_sep); \
|
||||
\
|
||||
if (use_outdigits && base == 10) \
|
||||
string = _i18n_number_rewrite (string, workend); \
|
||||
string = _i18n_number_rewrite (string, workend, workend); \
|
||||
} \
|
||||
/* Simplify further test for num != 0. */ \
|
||||
number.word = number.longlong != 0; \
|
||||
@@ -683,7 +683,7 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
|
||||
thousands_sep); \
|
||||
\
|
||||
if (use_outdigits && base == 10) \
|
||||
string = _i18n_number_rewrite (string, workend); \
|
||||
string = _i18n_number_rewrite (string, workend, workend); \
|
||||
} \
|
||||
} \
|
||||
\
|
||||
|
Reference in New Issue
Block a user