diff --git a/src/game/server/score/sql_score.cpp b/src/game/server/score/sql_score.cpp index f4e6b71dc..fb594186b 100644 --- a/src/game/server/score/sql_score.cpp +++ b/src/game/server/score/sql_score.cpp @@ -1184,7 +1184,7 @@ void CSqlScore::ShowTimes(int ClientID, const char* pName, int Debut) void CSqlScore::FuzzyString(char *pString) { - char newString[127]; // 32 * 4 - 1 + char newString[32*4-1]; int pos = 0; for(int i=0;i<64;i++) @@ -1204,7 +1204,7 @@ void CSqlScore::FuzzyString(char *pString) // anti SQL injection void CSqlScore::ClearString(char *pString, int size) { - char newString[size*2-1]; + char *newString = (char *)malloc(size * 2 - 1); int pos = 0; for(int i=0;i