mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
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);
|
char *asdf = get_amxstring(amx, params[1], 0, len);
|
||||||
int flag = 0, incr = 0;
|
int flag = 0, incr = 0;
|
||||||
register int i = 0;
|
register int i = 0;
|
||||||
for (i=strlen(asdf); i>=0; i--)
|
for (i=strlen(asdf)-1; i>=0; i--)
|
||||||
{
|
{
|
||||||
if (!isspace(asdf[i]))
|
if (!isspace(asdf[i]))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user