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:
@@ -2550,7 +2550,7 @@ extcmds_match(const char *findstr, int ecmflags, int **matchlist)
|
||||
{
|
||||
static int retmatchlist[SIZE(extcmdlist)] = DUMMY;
|
||||
int i, mi = 0;
|
||||
int fslen = findstr ? strlen(findstr) : 0;
|
||||
int fslen = findstr ? Strlen(findstr) : 0;
|
||||
boolean ignoreac = (ecmflags & ECM_IGNOREAC) != 0;
|
||||
boolean exactmatch = (ecmflags & ECM_EXACTMATCH) != 0;
|
||||
boolean no1charcmd = (ecmflags & ECM_NO1CHARCMD) != 0;
|
||||
|
||||
Reference in New Issue
Block a user