Merge pull request #5 from ksherlock/patch_8

fix printf argument bug
This commit is contained in:
MikeW50 2018-03-25 15:24:36 -06:00 committed by GitHub
commit aeeb5ed53b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1584,7 +1584,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 */
@ -1751,7 +1751,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(' ');
@ -2338,7 +2338,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 */