Format string auditing

This commit is contained in:
Kris Kennaway 2000-11-26 09:51:46 +00:00
parent 4b5e6561d3
commit 45459ea3bd
3 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ writedes()
putchar((int)c);
else {
if (c != '*')
printf(truedirec(compass, c));
printf("%s", truedirec(compass, c));
compass++;
}
}

View File

@ -109,13 +109,13 @@ msgcrd(c, brfrank, mid, brfsuit)
if (brfrank)
addmsg("%1.1s", rankchar[c.rank]);
else
addmsg(rankname[c.rank]);
addmsg("%s", rankname[c.rank]);
if (mid != NULL)
addmsg("%s", mid);
if (brfsuit)
addmsg("%1.1s", suitchar[c.suit]);
else
addmsg(suitname[c.suit]);
addmsg("%s", suitname[c.suit]);
return (TRUE);
}

View File

@ -294,7 +294,7 @@ dig() {
digtxt = "Now what exactly was it that you were digging in?";
mnewsym(dpx, dpy);
prl(dpx, dpy);
pline(digtxt); /* after mnewsym & prl */
pline("%s", digtxt); /* after mnewsym & prl */
return(0);
} else {
if(IS_WALL(levl[dpx][dpy].typ)) {