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:
nhkeni
2022-03-06 20:23:04 -05:00
parent 1e31fee0df
commit ff1289e828
16 changed files with 45 additions and 32 deletions

View File

@@ -2906,8 +2906,8 @@ lspo_message(lua_State *L)
msg = luaL_checkstring(L, 1);
old_n = g.lev_message ? (strlen(g.lev_message) + 1) : 0;
n = strlen(msg);
old_n = g.lev_message ? (Strlen(g.lev_message) + 1) : 0;
n = Strlen(msg);
levmsg = (char *) alloc(old_n + n + 1);
if (old_n)