Magellan Linux

Annotation of /trunk/glibc/patches/glibc-2.15-scanf.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1806 - (hide annotations) (download)
Tue Jun 12 12:33:27 2012 UTC (11 years, 11 months ago) by niro
File size: 894 byte(s)
-added patches for 2.15-r1
1 niro 1806 diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
2     index 0e71deb..e18a6c3 100644
3     --- a/stdio-common/vfscanf.c
4     +++ b/stdio-common/vfscanf.c
5     @@ -1,4 +1,4 @@
6     -/* Copyright (C) 1991-2006, 2007, 2010, 2011 Free Software Foundation, Inc.
7     +/* Copyright (C) 1991-2007, 2010, 2011, 2012 Free Software Foundation, Inc.
8     This file is part of the GNU C Library.
9    
10     The GNU C Library is free software; you can redistribute it and/or
11     @@ -274,7 +274,7 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr,
12     CHAR_T *old = wp; \
13     size_t newsize = (UCHAR_MAX + 1 > 2 * wpmax \
14     ? UCHAR_MAX + 1 : 2 * wpmax); \
15     - if (use_malloc || __libc_use_alloca (newsize)) \
16     + if (use_malloc || !__libc_use_alloca (newsize)) \
17     { \
18     wp = realloc (use_malloc ? wp : NULL, newsize); \
19     if (wp == NULL) \