summaryrefslogtreecommitdiffstats
path: root/patches/libcgi-1.0/0007-wrong-variable.patch
blob: c6f46e68e7584fa97b3be46c76db422bf0f89cc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Robert Schwebel <r.schwebel@pengutronix.de>
Date: Fri, 26 Oct 2012 21:46:21 +0200
Subject: [PATCH] wrong variable

We use a wrong variable here.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
---
 src/string.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/string.c b/src/string.c
index 2cfcbe2..3dc437f 100644
--- a/src/string.c
+++ b/src/string.c
@@ -584,7 +584,7 @@ char *make_string(char *s, ...)
 
 	va_start(ptr, s);
 
-	va_copy(bkp, str);
+	va_copy(bkp, ptr);
 	len = strlen(s);
 
 	while (*str) {