]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CCutscene.cpp
Use strlcat() and strlcpy(), #define wrappers when these functions are not available.
[quix0rs-blobwars.git] / src / CCutscene.cpp
index 9da816f9166a603939259248d9860eac51c8d939..bf3d537401af7796382bc9d168b8b4f1ae88ee4d 100644 (file)
@@ -29,6 +29,6 @@ Cutscene::Cutscene()
 
 void Cutscene::appendText(const char *line)
 {
-       strncat(text, " ", sizeof text);
-       strncat(text, line, sizeof text);
+       strlcat(text, " ", sizeof text);
+       strlcat(text, line, sizeof text);
 }