From 05fcc58b2fd2089113c9336fa30364e8eacb9ae5 Mon Sep 17 00:00:00 2001 From: def Date: Wed, 23 Sep 2015 14:05:54 +0200 Subject: [PATCH] Oops, next SQL server compilation fix --- src/game/server/score/sql_score.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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