fix printf argument bug

This commit is contained in:
Kelvin Sherlock 2018-03-15 22:20:08 -04:00
parent ebab9328f6
commit 9a6bde652c
1 changed files with 3 additions and 3 deletions

View File

@ -1570,7 +1570,7 @@ void WriteT (long *root)
if (root) if (root)
switch(root[1]) { switch(root[1]) {
case 3: /* handle label value */ case 3: /* handle label value */
printf((char *) (root+5)); fputs((char *) (root+5), stdout);
break; break;
case 2: /* handle number value */ case 2: /* handle number value */
if (root[0] == 135) /* split on case of relative ofset */ if (root[0] == 135) /* split on case of relative ofset */
@ -1737,7 +1737,7 @@ void PutLSymbol (void)
int i; int i;
ReadName(symbol,lablen,input); ReadName(symbol,lablen,input);
printf(symbol); fputs(symbol, stdout);
for (i=act_lablen; i<8; i++) /* fill out with spaces */ for (i=act_lablen; i<8; i++) /* fill out with spaces */
putchar(' '); putchar(' ');
putchar(' '); putchar(' ');
@ -2324,7 +2324,7 @@ while (NextSeg()) {
} }
PutStreg(); /* write the registar status */ PutStreg(); /* write the registar status */
PutCTPC(); PutCTPC();
printf(segname); /* print the segment name */ fputs(segname, stdout); /* print the segment name */
for (i=strlen(segname); i<8; i++) /* fill out with spaces */ for (i=strlen(segname); i<8; i++) /* fill out with spaces */
putchar(' '); putchar(' ');
if (kind & 1) /* print out segment type */ if (kind & 1) /* print out segment type */