[hackers] [9base] applied cls's OSX troff fix patch, thanks || anselm

From: <hg_AT_suckless.org>
Date: Thu, 5 Apr 2012 20:27:43 +0200 (CEST)

changeset: 98:5cafc9ec2fde
tag: tip
user: anselm_AT_garbe.us
date: Thu Apr 05 20:27:40 2012 +0200
files: troff/tdef.h
description:
applied cls's OSX troff fix patch, thanks


diff -r c13332db2835 -r 5cafc9ec2fde troff/tdef.h
--- a/troff/tdef.h Mon Mar 19 22:42:11 2012 +0100
+++ b/troff/tdef.h Thu Apr 05 20:27:40 2012 +0200
_AT_@ -58,10 +58,10 @@
 /* the BSD goo is because SunOS sprintf doesn't return anything useful */
 
 #ifdef BSD4_2
-#define OUT (obufp += strlen(sprintf(obufp,
+#define OUT (obufp += strlen((sprintf)(obufp,
 #define PUT ))) > obuf+BUFSIZ ? flusho() : 1
 #else
-#define OUT (obufp += sprintf(obufp,
+#define OUT (obufp += (sprintf)(obufp,
 #define PUT )) > obuf+BUFSIZ ? flusho() : 1
 #endif
 
_AT_@ -69,7 +69,7 @@
 #define oput(c) ( *obufp++ = (c), obufp > obuf+BUFSIZ ? flusho() : 1 )
 
 extern char errbuf[];
-#define ERROR sprintf(errbuf,
+#define ERROR (sprintf)(errbuf,
 #define WARN ), errprint()
 #define FATAL ), errprint(), exit(1)
 
Received on Thu Apr 05 2012 - 20:27:43 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 05 2012 - 20:36:06 CEST