Add Strlen(), a strlen(3) that panics if string is stupid long and returns unsigned.
First batch of changes to use it to suppress warnings.
This commit is contained in:
@@ -1423,7 +1423,7 @@ really_done(int how)
|
||||
|
||||
corpse = mk_named_object(CORPSE, &mons[mnum], u.ux, u.uy, g.plname);
|
||||
Sprintf(pbuf, "%s, ", g.plname);
|
||||
formatkiller(eos(pbuf), sizeof pbuf - strlen(pbuf), how, TRUE);
|
||||
formatkiller(eos(pbuf), sizeof pbuf - Strlen(pbuf), how, TRUE);
|
||||
make_grave(u.ux, u.uy, pbuf);
|
||||
}
|
||||
pbuf[0] = '\0'; /* clear grave text; also lint suppression */
|
||||
|
||||
Reference in New Issue
Block a user