From 51b9fae4bc328a78cb53a910156687a82a654384 Mon Sep 17 00:00:00 2001 From: Lukasz Wlasinksi Date: Fri, 10 Dec 2004 23:37:43 +0000 Subject: [PATCH] fixed strbreak --- amxmodx/string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/string.cpp b/amxmodx/string.cpp index 1e452b4a..56c5a5cd 100755 --- a/amxmodx/string.cpp +++ b/amxmodx/string.cpp @@ -527,7 +527,7 @@ static cell AMX_NATIVE_CALL strbreak(AMX *amx, cell *params) /* 5 param */ } else if (string[i] == '"' && quote_flag) { quote_flag = false; } - if ((string[i] == ' ') && !quote_flag && !done_flag) { + if (isspace(string[i]) && !quote_flag && !done_flag) { done_flag = true; i++; }