Package: isdnutils / 1:3.25+dfsg1-3.5

use-va_copy.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Author: Andreas Beckmann <anbe@debian.org>
Description: fix FTBFS: error: assignment to expression with array type

--- a/ipppd/main.c
+++ b/ipppd/main.c
@@ -1205,7 +1205,6 @@ int vfmtmsg(char *buf,int buflen,char *f
     unsigned long val=0;
     char *str, *f, *buf0;
     unsigned char *p;
-    va_list a;
     char num[32];
     time_t t;
     static char hexchars[] = "0123456789abcdef";
@@ -1296,15 +1295,19 @@ int vfmtmsg(char *buf,int buflen,char *f
         str = ip_ntoa(va_arg(args, u_int32_t));
         break;
     case 'r':
+	{
+    	va_list a;
         f = va_arg(args, char *);
-        a = va_arg(args, va_list);
+	va_copy(a, args);
 #ifdef __alpha__       /* always do this? */
 	n = fmtmsg(buf, buflen + 1, f, a);
 #else
 	n = vfmtmsg(buf, buflen + 1, f, a);
 #endif
+	va_end(a);
         buf += n;
         buflen -= n;
+	}
         continue;
     case 't':
         time(&t);