fixed bug in trim()
This commit is contained in:
parent
52b9b7f04d
commit
1417434533
|
@ -577,7 +577,7 @@ static cell AMX_NATIVE_CALL amx_trim(AMX *amx, cell *params)
|
|||
char *asdf = get_amxstring(amx, params[1], 0, len);
|
||||
int flag = 0, incr = 0;
|
||||
register int i = 0;
|
||||
for (i=strlen(asdf); i>=0; i--)
|
||||
for (i=strlen(asdf)-1; i>=0; i--)
|
||||
{
|
||||
if (!isspace(asdf[i]))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user