aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/draw_v1.cpp
diff options
context:
space:
mode:
authorSven Hesse2010-10-15 13:54:23 +0000
committerSven Hesse2010-10-15 13:54:23 +0000
commit5c48c3fd2b5a229e125455b3f5c23f4773b0191e (patch)
treee046dd5ca61d6f7f78eb61dd9f7b9771168e6dc3 /engines/gob/draw_v1.cpp
parent04973e85be84db4ac5a71a7012eb68c8e52af3c4 (diff)
downloadscummvm-rg350-5c48c3fd2b5a229e125455b3f5c23f4773b0191e.tar.gz
scummvm-rg350-5c48c3fd2b5a229e125455b3f5c23f4773b0191e.tar.bz2
scummvm-rg350-5c48c3fd2b5a229e125455b3f5c23f4773b0191e.zip
GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with Common::strlcpy() svn-id: r53490
Diffstat (limited to 'engines/gob/draw_v1.cpp')
-rw-r--r--engines/gob/draw_v1.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/gob/draw_v1.cpp b/engines/gob/draw_v1.cpp
index 6496229282..e23ae256f3 100644
--- a/engines/gob/draw_v1.cpp
+++ b/engines/gob/draw_v1.cpp
@@ -24,6 +24,7 @@
*/
#include "common/endian.h"
+#include "common/str.h"
#include "graphics/cursorman.h"
#include "gob/gob.h"
@@ -258,7 +259,7 @@ void Draw_v1::printTotText(int16 id) {
} else if (cmd == 1) {
val = READ_LE_UINT16(ptrEnd + 18) * 4;
- strncpy0(buf, GET_VARO_STR(val), 19);
+ Common::strlcpy(buf, GET_VARO_STR(val), 20);
} else {
val = READ_LE_UINT16(ptrEnd + 18) * 4;