1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.2.5/sscanf.patch Sat Jun 02 08:13:13 2007 +0000
1.3 @@ -0,0 +1,82 @@
1.4 +[dank] Modified very slightly to apply to 2.2.5.
1.5 +
1.6 +2003-03-05 Roland McGrath <roland@redhat.com>
1.7 +
1.8 + * stdio-common/sscanf.c: Use prototype defn with ... syntax.
1.9 + * libio/swscanf.c: Likewise.
1.10 + * libio/swprintf.c: Likewise.
1.11 +
1.12 +===================================================================
1.13 +RCS file: /cvs/glibc/libc/stdio-common/sscanf.c,v
1.14 +retrieving revision 1.8
1.15 +retrieving revision 1.9
1.16 +diff -u -r1.8 -r1.9
1.17 +--- libc/stdio-common/sscanf.c 2002/08/10 09:24:42 1.8
1.18 ++++ libc/stdio-common/sscanf.c 2003/03/05 19:58:03 1.9
1.19 +@@ -1,4 +1,4 @@
1.20 +-/* Copyright (C) 1991, 1995, 1996, 1998 Free Software Foundation, Inc.
1.21 ++/* Copyright (C) 1991,1995,1996,1998,2002,2003 Free Software Foundation, Inc.
1.22 + This file is part of the GNU C Library.
1.23 +
1.24 + The GNU C Library is free software; you can redistribute it and/or
1.25 +@@ -27,9 +27,7 @@
1.26 + /* Read formatted input from S, according to the format string FORMAT. */
1.27 + /* VARARGS2 */
1.28 + int
1.29 +-sscanf (s, format)
1.30 +- const char *s;
1.31 +- const char *format;
1.32 ++sscanf (const char *s, const char *format, ...)
1.33 + {
1.34 + va_list arg;
1.35 + int done;
1.36 +===================================================================
1.37 +RCS file: /cvs/glibc/libc/libio/swprintf.c,v
1.38 +retrieving revision 1.3
1.39 +retrieving revision 1.4
1.40 +diff -u -r1.3 -r1.4
1.41 +--- libc/libio/swprintf.c 2001/07/06 04:55:32 1.3
1.42 ++++ libc/libio/swprintf.c 2003/03/05 19:58:03 1.4
1.43 +@@ -1,4 +1,5 @@
1.44 +-/* Copyright (C) 1991,1995,1997,1998,1999,2000 Free Software Foundation, Inc.
1.45 ++/* Copyright (C) 1991,1995,1997,1998,1999,2000,2003
1.46 ++ Free Software Foundation, Inc.
1.47 + This file is part of the GNU C Library.
1.48 +
1.49 + The GNU C Library is free software; you can redistribute it and/or
1.50 +@@ -22,10 +23,7 @@
1.51 + /* Write formatted output into S, according to the format string FORMAT. */
1.52 + /* VARARGS3 */
1.53 + int
1.54 +-swprintf (s, n, format)
1.55 +- wchar_t *s;
1.56 +- size_t n;
1.57 +- const wchar_t *format;
1.58 ++swprintf (wchar_t *s, size_t n, const wchar_t *format, ...)
1.59 + {
1.60 + va_list arg;
1.61 + int done;
1.62 +===================================================================
1.63 +RCS file: /cvs/glibc/libc/libio/swscanf.c,v
1.64 +retrieving revision 1.2
1.65 +retrieving revision 1.3
1.66 +diff -u -r1.2 -r1.3
1.67 +--- libc/libio/swscanf.c 2001/07/06 04:55:32 1.2
1.68 ++++ libc/libio/swscanf.c 2003/03/05 19:58:03 1.3
1.69 +@@ -1,4 +1,4 @@
1.70 +-/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
1.71 ++/* Copyright (C) 1991,1995,1996,1998,1999,2003 Free Software Foundation, Inc.
1.72 + This file is part of the GNU C Library.
1.73 +
1.74 + The GNU C Library is free software; you can redistribute it and/or
1.75 +@@ -22,9 +22,7 @@
1.76 + /* Read formatted input from S, according to the format string FORMAT. */
1.77 + /* VARARGS2 */
1.78 + int
1.79 +-swscanf (s, format)
1.80 +- const wchar_t *s;
1.81 +- const wchar_t *format;
1.82 ++swscanf (const wchar_t *s, const wchar_t *format, ...)
1.83 + {
1.84 + va_list arg;
1.85 + int done;