FreeBSD Bugzilla – Attachment 161451 Details for
Bug 203326
[PATCH] print/a2ps: command "a2ps -M a4 --list=defaults" dumps a2ps.core
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for print/a2ps (without running make makepatch)
patch-a2ps.diff (text/plain), 1.39 KB, created by
Tatsuki Makino
on 2015-09-27 00:55:21 UTC
(
hide
)
Description:
patch for print/a2ps (without running make makepatch)
Filename:
MIME Type:
Creator:
Tatsuki Makino
Created:
2015-09-27 00:55:21 UTC
Size:
1.39 KB
patch
obsolete
>Index: files/patch-lib_printlen.c >=================================================================== >--- files/patch-lib_printlen.c (revision 0) >+++ files/patch-lib_printlen.c (working copy) >@@ -0,0 +1,27 @@ >+--- lib/printlen.c.orig 1999-08-31 17:42:42 UTC >++++ lib/printlen.c >+@@ -28,14 +28,11 @@ Foundation, Inc., 59 Temple Place - Suit >+ unsigned long strtoul (); >+ >+ static int >+-int_printflen (const char *format, va_list *args) >++int_printflen (const char *format, va_list ap) >+ { >+ const char *cp; >+ int total_width = 0; >+ int width = 0; >+- va_list ap; >+- >+- memcpy (&ap, args, sizeof (va_list)); >+ >+ for (cp = format ; *cp ; cp++) >+ { >+@@ -99,7 +96,7 @@ int_printflen (const char *format, va_li >+ int >+ vprintflen (const char *format, va_list args) >+ { >+- return int_printflen (format, &args); >++ return int_printflen (format, args); >+ } >+ >+ int >Index: files/patch-lib_title.c >=================================================================== >--- files/patch-lib_title.c (revision 0) >+++ files/patch-lib_title.c (working copy) >@@ -0,0 +1,11 @@ >+--- lib/title.c.orig 2015-09-25 08:26:23 UTC >++++ lib/title.c >+@@ -88,6 +88,8 @@ title (stream, c, center_p, format, va_a >+ if (center_p) >+ for (padding = 0 ; padding < 79 - len ; padding += 2) >+ putc (' ', stream); >++ va_end(args); >++ VA_START(args, format); >+ # if HAVE_VPRINTF || _LIBC >+ vfprintf (stream, format, args); >+ # else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203326
:
161371
| 161451