[PATCH] Trivial fix: sscanf always calls realloc
Ulrich Drepper
drepper@gmail.com
Mon Jan 9 01:17:00 GMT 2012
On Thu, Jan 5, 2012 at 20:05, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
> index 0e71deb..c96367e3 100644
> --- a/stdio-common/vfscanf.c
> +++ b/stdio-common/vfscanf.c
> @@ -274,7 +274,7 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr,
> CHAR_T *old = wp; \
> size_t newsize = (UCHAR_MAX + 1 > 2 * wpmax \
> ? UCHAR_MAX + 1 : 2 * wpmax); \
> - if (use_malloc || __libc_use_alloca (newsize)) \
> + if (use_malloc || !__libc_use_alloca (newsize)) \
Applied. Next time update the copyright year as well. Just use
emacs's copyright mode!
More information about the Libc-alpha
mailing list