diff options
author | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-04-18 10:19:48 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <andre@pc-01.localdomain> | 2012-04-18 10:19:48 -0300 |
commit | 4446c507b469062091a16097e35dd10bcd6e92c3 (patch) | |
tree | 5ed079ff9c3a2cb0ab865687e3c71bce5bb6339a /cross/mips64el-unknown-linux-gnu-glibc/glibc-2.15-scanf.patch | |
parent | 03a590c8c2e821c098486ab888f4be259db97184 (diff) | |
parent | 8ac96e9029f06dde8e58c31a1b87d2bd3a8509b7 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/abslibre
Diffstat (limited to 'cross/mips64el-unknown-linux-gnu-glibc/glibc-2.15-scanf.patch')
-rw-r--r-- | cross/mips64el-unknown-linux-gnu-glibc/glibc-2.15-scanf.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cross/mips64el-unknown-linux-gnu-glibc/glibc-2.15-scanf.patch b/cross/mips64el-unknown-linux-gnu-glibc/glibc-2.15-scanf.patch new file mode 100644 index 000000000..a2561b232 --- /dev/null +++ b/cross/mips64el-unknown-linux-gnu-glibc/glibc-2.15-scanf.patch @@ -0,0 +1,19 @@ +diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c +index 0e71deb..e18a6c3 100644 +--- a/stdio-common/vfscanf.c ++++ b/stdio-common/vfscanf.c +@@ -1,4 +1,4 @@ +-/* Copyright (C) 1991-2006, 2007, 2010, 2011 Free Software Foundation, Inc. ++/* Copyright (C) 1991-2007, 2010, 2011, 2012 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or +@@ -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)) \ + { \ + wp = realloc (use_malloc ? wp : NULL, newsize); \ + if (wp == NULL) \ |