]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CHub.cpp
Do not use DESTDIR in PREFIX, but only in the install target.
[quix0rs-blobwars.git] / src / CHub.cpp
index 4c8192eca6748e82023cc5626e5bb907d375753d..dcb3acd437fcce766315afa35f8d20b71f76bb3a 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2010 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;
 }