Format string auditing
This commit is contained in:
parent
4b5e6561d3
commit
45459ea3bd
@ -56,7 +56,7 @@ writedes()
|
||||
putchar((int)c);
|
||||
else {
|
||||
if (c != '*')
|
||||
printf(truedirec(compass, c));
|
||||
printf("%s", truedirec(compass, c));
|
||||
compass++;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user