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:
@@ -176,9 +176,10 @@ eatmupdate(void)
|
||||
|
||||
if (altmsg) {
|
||||
/* replace end-of-mimicking message */
|
||||
if (strlen(altmsg) > strlen(g.eatmbuf)) {
|
||||
int amlen = Strlen(altmsg);
|
||||
if (amlen > Strlen(g.eatmbuf)) {
|
||||
free((genericptr_t) g.eatmbuf);
|
||||
g.eatmbuf = (char *) alloc(strlen(altmsg) + 1);
|
||||
g.eatmbuf = (char *) alloc(amlen + 1);
|
||||
}
|
||||
g.nomovemsg = strcpy(g.eatmbuf, altmsg);
|
||||
/* update current image */
|
||||
|
||||
Reference in New Issue
Block a user