From 14174345333c5cc700dcf2492b2ed9ab5b9a2060 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 24 Jul 2004 16:22:18 +0000 Subject: [PATCH] fixed bug in trim() --- amxmodx/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/string.cpp b/amxmodx/string.cpp index e7ca4c09..a6538a0f 100755 --- a/amxmodx/string.cpp +++ b/amxmodx/string.cpp @@ -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])) {