From 64878fd0941bea05deaa12746ba85b00415b6282 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 1 Jul 2015 12:12:18 +0200 Subject: freetrack: use volatile --- csv/csv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'csv') diff --git a/csv/csv.cpp b/csv/csv.cpp index 71db8ecb..e55b429c 100644 --- a/csv/csv.cpp +++ b/csv/csv.cpp @@ -97,7 +97,8 @@ void CSV::getGameData( const int id, unsigned char* table, QString& gamename) QString gameID = QString::number(id); /* zero table first, in case unknown game is connecting */ - memset(table, 0, 8); + for (int i = 0; i < 8; i++) + table[i] = 0; QStringList gameLine; qDebug() << "getGameData, ID = " << gameID; -- cgit v1.2.3