mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
fixed length array for ignore.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2007-05-02 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
|
||||||
|
fixed length array for ignore.
|
||||||
|
|
||||||
2007-04-30 Ulrich Drepper <drepper@redhat.com>
|
2007-04-30 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
[BZ #4438]
|
[BZ #4438]
|
||||||
|
@@ -1162,7 +1162,8 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
|
|||||||
/* In case we have a multibyte character set the \
|
/* In case we have a multibyte character set the \
|
||||||
situation is more complicated. We must not copy \
|
situation is more complicated. We must not copy \
|
||||||
bytes at the end which form an incomplete character. */\
|
bytes at the end which form an incomplete character. */\
|
||||||
wchar_t ignore[1024]; \
|
size_t ignore_size = (unsigned) prec > 1024 ? 1024 : prec;\
|
||||||
|
wchar_t ignore[ignore_size]; \
|
||||||
const char *str2 = string; \
|
const char *str2 = string; \
|
||||||
const char *strend = string + prec; \
|
const char *strend = string + prec; \
|
||||||
if (strend < string) \
|
if (strend < string) \
|
||||||
|
Reference in New Issue
Block a user