]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/mapEditor.cpp
Use strlcat() and strlcpy(), #define wrappers when these functions are not available.
[quix0rs-blobwars.git] / src / mapEditor.cpp
index 2f3bc9823c8bc987a7c9c5a3b44e4bede52e50cf..240553c1fdc57bb0ce17500ebba4890b19dabf6e 100644 (file)
@@ -268,7 +268,7 @@ void collectMapData()
                if (!strstr(string, " ENEMY \""))
                {
                        str = new String;
-                       strncpy(str->string, string, sizeof str->string);
+                       strlcpy(str->string, string, sizeof str->string);
                        stringTail->next = str;
                        stringTail = str;
                }