aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-11-17 19:48:37 -0800
committerRuss Cox <rsc@swtch.com>2008-11-17 19:48:37 -0800
commitc8d681e850ff0acecedb86d4a8a927687536e013 (patch)
tree8dfa7dba869136270aaa077f3cc22a8748767b6b /src/cmd/troff
parent6bf652ed9c56b15821dc0dc805d9023805ab7ed0 (diff)
downloadplan9port-c8d681e850ff0acecedb86d4a8a927687536e013.tar.gz
plan9port-c8d681e850ff0acecedb86d4a8a927687536e013.tar.bz2
plan9port-c8d681e850ff0acecedb86d4a8a927687536e013.zip
troff: silence gcc printf warning
Diffstat (limited to 'src/cmd/troff')
-rw-r--r--src/cmd/troff/n4.c2
-rw-r--r--src/cmd/troff/n5.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/troff/n4.c b/src/cmd/troff/n4.c
index 71162cc3..a1abe943 100644
--- a/src/cmd/troff/n4.c
+++ b/src/cmd/troff/n4.c
@@ -559,7 +559,7 @@ void prnumerr(void)
warn);
if (frame != stk) /* uncertainty correction */
numtabp[CD].val--;
- ERROR err_buf WARN;
+ ERROR "%s", err_buf WARN;
numtabp[CD].val = savcd;
}
diff --git a/src/cmd/troff/n5.c b/src/cmd/troff/n5.c
index 2c7d3287..72664327 100644
--- a/src/cmd/troff/n5.c
+++ b/src/cmd/troff/n5.c
@@ -467,7 +467,7 @@ void casetm1(int ab, FILE *out)
p = chname(c);
switch (*p) {
case MBchar:
- sprintf(&tmbuf[i], p+1);
+ strcpy(&tmbuf[i], p+1);
break;
case Number:
sprintf(&tmbuf[i], "\\N'%s'", p+1);