mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-26 05:38:04 +03:00
Fix strfind ignoring its last parameter (bug 4070, r=dvander).
This commit is contained in:
parent
e3824c4c87
commit
a31621dd0c
@ -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…
x
Reference in New Issue
Block a user