mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Fix strfind ignoring its last parameter (bug 4070, r=dvander).
Former-commit-id: a31621dd0c
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)
|
if (params[4] > len)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
char *find = strstr(str, sub);
|
char *find = strstr(str + params[4], sub);
|
||||||
|
|
||||||
if (!find)
|
if (!find)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user