From 4bf1a682929328808d14c2b5e098fba973ac0832 Mon Sep 17 00:00:00 2001 From: H-M-H Date: Thu, 5 May 2016 13:23:35 +0200 Subject: [PATCH] do not write nullbytes to failed_sql.sql --- src/game/server/score/sql_score.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/score/sql_score.cpp b/src/game/server/score/sql_score.cpp index 4657e0865..ba10370f8 100644 --- a/src/game/server/score/sql_score.cpp +++ b/src/game/server/score/sql_score.cpp @@ -590,7 +590,7 @@ bool CSqlScore::SaveTeamScoreThread(CSqlServer* pSqlServer, CSqlData *pGameData, if(File) { const char pUUID[] = "SET @id = UUID();"; - io_write(File, pUUID, sizeof(pUUID)); + io_write(File, pUUID, sizeof(pUUID) - 1); io_write_newline(File); char aTimestamp [20];