View | Details | Raw Unified | Return to bug 203326 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-lib_printlen.c (+27 lines)
Line 0 Link Here
1
--- lib/printlen.c.orig	1999-08-31 17:42:42 UTC
2
+++ lib/printlen.c
3
@@ -28,14 +28,11 @@ Foundation, Inc., 59 Temple Place - Suit
4
 unsigned long strtoul ();
5
 
6
 static int
7
-int_printflen (const char *format, va_list *args)
8
+int_printflen (const char *format, va_list ap)
9
 {
10
   const char *cp;
11
   int total_width = 0;
12
   int width = 0;
13
-  va_list ap;
14
-
15
-  memcpy (&ap, args, sizeof (va_list));
16
 
17
   for (cp = format ; *cp ; cp++)
18
     {
19
@@ -99,7 +96,7 @@ int_printflen (const char *format, va_li
20
 int
21
 vprintflen (const char *format,  va_list args)
22
 {
23
-  return int_printflen (format, &args);
24
+  return int_printflen (format, args);
25
 }
26
 
27
 int
(-)files/patch-lib_title.c (+11 lines)
Line 0 Link Here
1
--- lib/title.c.orig	2015-09-25 08:26:23 UTC
2
+++ lib/title.c
3
@@ -88,6 +88,8 @@ title (stream, c, center_p, format, va_a
4
   if (center_p)
5
     for (padding = 0 ; padding < 79 - len ; padding += 2)
6
       putc (' ', stream);
7
+  va_end(args);
8
+  VA_START(args, format);
9
 # if HAVE_VPRINTF || _LIBC
10
   vfprintf (stream, format, args);
11
 # else

Return to bug 203326