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
1 changed files with 3 additions and 3 deletions

View File

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