troff: silence gcc printf warning

This commit is contained in:
Russ Cox 2008-11-17 19:48:37 -08:00
parent 6bf652ed9c
commit c8d681e850
2 changed files with 2 additions and 2 deletions

View file

@ -559,7 +559,7 @@ void prnumerr(void)
warn); warn);
if (frame != stk) /* uncertainty correction */ if (frame != stk) /* uncertainty correction */
numtabp[CD].val--; numtabp[CD].val--;
ERROR err_buf WARN; ERROR "%s", err_buf WARN;
numtabp[CD].val = savcd; numtabp[CD].val = savcd;
} }

View file

@ -467,7 +467,7 @@ void casetm1(int ab, FILE *out)
p = chname(c); p = chname(c);
switch (*p) { switch (*p) {
case MBchar: case MBchar:
sprintf(&tmbuf[i], p+1); strcpy(&tmbuf[i], p+1);
break; break;
case Number: case Number:
sprintf(&tmbuf[i], "\\N'%s'", p+1); sprintf(&tmbuf[i], "\\N'%s'", p+1);