Fix strfind ignoring its last parameter (bug 4070, r=dvander).

Former-commit-id: a31621dd0c
This commit is contained in:
arkshine 2013-02-13 00:54:26 -08:00
parent a26a98cb98
commit 8793d8f8d5

View File

@ -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;