]> 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 4c8192eca6748e82023cc5626e5bb907d375753d..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
@@ -33,8 +33,8 @@ HubLevel::HubLevel()
 
 void HubLevel::set(const char *stageName, const char *filename, int x, int y)
 {
-       strncpy(this->stageName, stageName, sizeof this->stageName);
-       strncpy(this->filename, filename, sizeof this->filename);
+       strlcpy(this->stageName, stageName, sizeof this->stageName);
+       strlcpy(this->filename, filename, sizeof this->filename);
        this->x = x;
        this->y = y;
 }