Fix strfind ignoring its last parameter (bug 4070, r=dvander).
Former-commit-id: a31621dd0c08c7bbede41a06d0ebf8abab1b66a5
This commit is contained in:
parent
a26a98cb98
commit
8793d8f8d5
|
@ -1035,7 +1035,7 @@ static cell AMX_NATIVE_CALL n_strfind(AMX *amx, cell *params)
|
|||
if (params[4] > len)
|
||||
return -1;
|
||||
|
||||
char *find = strstr(str, sub);
|
||||
char *find = strstr(str + params[4], sub);
|
||||
|
||||
if (!find)
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user