Introduction
Introduction Statistics Contact Development Disclaimer Help
applied cls's OSX troff fix patch, thanks - 9base - revived minimalist port of …
git clone git://git.suckless.org/9base
Log
Files
Refs
README
LICENSE
---
commit 8528f7e3faac54de1b61ddc1443431543a1c1ce9
parent 5fcbf100201b93235b43cff403080a049a3a482d
Author: [email protected] <unknown>
Date: Thu, 5 Apr 2012 20:27:40 +0200
applied cls's OSX troff fix patch, thanks
Diffstat:
M troff/tdef.h | 6 +++---
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 ? …
extern char errbuf[];
-#define ERROR sprintf(errbuf,
+#define ERROR (sprintf)(errbuf,
#define WARN ), errprint()
#define FATAL ), errprint(), exit(1)
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.