diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-01 12:12:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-01 13:01:21 +0200 |
commit | 64878fd0941bea05deaa12746ba85b00415b6282 (patch) | |
tree | 010afb89511fdaa8873f2c55b937c057b034907a /csv/csv.cpp | |
parent | 14a972653d1db7a03de7e2ae9ac19e047d814893 (diff) |
freetrack: use volatile
Diffstat (limited to 'csv/csv.cpp')
-rw-r--r-- | csv/csv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |