]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CHub.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / CHub.cpp
index 2a85fef15eadd45d791c8773db16f9988fc980f4..3449415da694d2aeb924c29a264462b08845b547 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -22,8 +22,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 HubLevel::HubLevel()
 {
-       strcpy(stageName, "");
-       strcpy(filename, "");
+       stageName[0] = 0;
+       filename[0] = 0;
        x = y = 0;
 
        levelNameImage = NULL;
@@ -33,8 +33,8 @@ HubLevel::HubLevel()
 
 void HubLevel::set(const char *stageName, const char *filename, int x, int y)
 {
-       strcpy(this->stageName, stageName);
-       strcpy(this->filename, filename);
+       strlcpy(this->stageName, stageName, sizeof this->stageName);
+       strlcpy(this->filename, filename, sizeof this->filename);
        this->x = x;
        this->y = y;
 }