]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CGameData.cpp
Allow playing sounds with stereo effects.
[quix0rs-blobwars.git] / src / CGameData.cpp
index a7d17cf6db77aa4852a2f9032b30c0d3be3413f1..49fba529c1c4568c1b425f07725e59d6058e61a5 100644 (file)
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -90,7 +91,7 @@ void GameData::setMIARescueCount(const char *key, int rescues, int total)
                data = (Data*)data->next;
                if (strcmp(newKey, data->key) == 0)
                {
-                       strncpy(data->value, "MIAs", sizeof data->value);
+                       strlcpy(data->value, "MIAs", sizeof data->value);
                        data->current = rescues;
                        data->target = total;
                        return;