summaryrefslogtreecommitdiff
path: root/print/psutils/files/patch-pserror.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2013-04-24 04:13:09 +0000
committerHiroki Sato <hrs@FreeBSD.org>2013-04-24 04:13:09 +0000
commit5f8eb67e3760459c0834c08f36d9e502d3388e3a (patch)
treeb0094c17ab958c91c23c0e89d3bb437c5adf6982 /print/psutils/files/patch-pserror.c
parent- Add patch to prevent deletion of /dev/null (diff)
Merge print/psutils-a4 and print/psutils-letter into a single port
print/psutils. The default paper size in the programs can be set via libpaper ($PAPERSIZE or etc/papersize configuration file).
Diffstat (limited to 'print/psutils/files/patch-pserror.c')
-rw-r--r--print/psutils/files/patch-pserror.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/print/psutils/files/patch-pserror.c b/print/psutils/files/patch-pserror.c
new file mode 100644
index 000000000000..a758c5408984
--- /dev/null
+++ b/print/psutils/files/patch-pserror.c
@@ -0,0 +1,11 @@
+--- pserror.c.orig 2011-06-21 04:20:14.000000000 +0900
++++ pserror.c 2011-06-21 04:20:31.000000000 +0900
+@@ -24,7 +24,7 @@
+ void message(int flags, char *format, ...)
+ {
+ va_list args ;
+- static column = 0 ; /* current screen column for message wrap */
++ static int column = 0 ; /* current screen column for message wrap */
+ char msgbuf[MAX_MESSAGE] ; /* buffer in which to put the message */
+ char *bufptr = msgbuf ; /* message buffer pointer */
+