summaryrefslogtreecommitdiff
blob: 70b3ebcdd83217f08abdea843e18313838f6bb26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- src/strlib.c.orig	2003-08-18 11:52:38.000000000 +0200
+++ src/strlib.c	2004-07-05 20:32:48.853638760 +0200
@@ -167,14 +167,16 @@
 -------------------------------------------------- */
 char *str_dup_printf(const char *format, ...)
 {
-	va_list ap1,ap2;
+	va_list ap1;
 	char *ptr;
 
 	va_start(ap1,format);
-	G_VA_COPY(ap2,ap1);
+	//G_VA_COPY(ap2,ap1);
 	ptr=str_malloc(printf_string_upper_bound(format,ap1));
-	vsprintf(ptr,format,ap2);
-	va_end(ap2);
+	va_end(ap1);
+	va_start(ap1,format);
+	vsprintf(ptr,format,ap1);
+	va_end(ap1);
 
 	return(ptr);
 }