Skip to content

Commit

Permalink
* stdio-common/vfprintf.c (process_string_arg): Use a VLA rather than
Browse files Browse the repository at this point in the history
	fixed length array for ignore.
  • Loading branch information
Ulrich Drepper committed May 2, 2007
1 parent 1cb0433 commit 57433ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

[BZ #4438]
Expand Down
3 changes: 2 additions & 1 deletion stdio-common/vfprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,8 @@ vfprintf (FILE *s, const CHAR_T *format, va_list ap)
/* In case we have a multibyte character set the \
situation is more complicated. We must not copy \
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 *strend = string + prec; \
if (strend < string) \
Expand Down

0 comments on commit 57433ed

Please sign in to comment.