commit 8528f7e3faac54de1b61ddc1443431543a1c1ce9
parent 5fcbf100201b93235b43cff403080a049a3a482d
Author: anselm@garbe.us <unknown>
Date: Thu, 5 Apr 2012 20:27:40 +0200
applied cls's OSX troff fix patch, thanks
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/troff/tdef.h b/troff/tdef.h
@@ -58,10 +58,10 @@ typedef struct Tbuf Tbuf;
/* 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
@@ -69,7 +69,7 @@ typedef struct Tbuf Tbuf;
#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)