do not write nullbytes to failed_sql.sql

This commit is contained in:
H-M-H 2016-05-05 13:23:35 +02:00
parent 931d99e4c2
commit 4bf1a68292

View file

@ -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];