SOURCES: popt-va.patch (NEW) - new

arekm arekm at pld-linux.org
Fri Jun 15 11:46:14 CEST 2007


Author: arekm                        Date: Fri Jun 15 09:46:14 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   popt-va.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/popt-va.patch
diff -u /dev/null SOURCES/popt-va.patch:1.1
--- /dev/null	Fri Jun 15 11:46:14 2007
+++ SOURCES/popt-va.patch	Fri Jun 15 11:46:09 2007
@@ -0,0 +1,21 @@
+Index: poptint.c
+===================================================================
+RCS file: /v/rpm/cvs/popt/poptint.c,v
+retrieving revision 1.4
+diff -u -u -r1.4 poptint.c
+--- poptint.c	14 Jun 2007 07:54:52 -0000	1.4
++++ poptint.c	15 Jun 2007 09:44:58 -0000
+@@ -97,9 +97,12 @@
+ {
+   char *buffer = NULL;
+   char c;
++  va_list apc;
++
++  va_copy(apc, ap);
+ 
+   buffer = calloc (sizeof (char), vsnprintf (&c, 1, format, ap) + 1);
+-  vsprintf (buffer, format, ap);
++  vsprintf (buffer, format, apc);
+ 
+   return buffer;
+ }
================================================================


More information about the pld-cvs-commit mailing list