]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CObjective.cpp
Set LC_NUMERIC to C.
[quix0rs-blobwars.git] / src / CObjective.cpp
index 9bf75f310b79d4e12a3f180f6b0c8e4b304e3f51..b796c0fef45e253a2e9aaea8a9ca575aa3b3b091 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
@@ -34,8 +35,8 @@ Objective::Objective()
 
 Objective::Objective(const char *description, const char *target, int targetValue, bool required)
 {
-       strncpy(this->description, description, sizeof this->description);
-       strncpy(this->target, target, sizeof this->target);
+       strlcpy(this->description, description, sizeof this->description);
+       strlcpy(this->target, target, sizeof this->target);
        this->targetValue = targetValue;
        this->required = required;