aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/font.cpp
diff options
context:
space:
mode:
authorStrangerke2013-10-30 23:10:30 +0100
committerStrangerke2013-10-30 23:14:13 +0100
commit5b086651ba61b8e51c702840bec12cddefb1188e (patch)
tree1f4786334c2ca89133ba3ad56582ac52d701bc52 /engines/toon/font.cpp
parent0d20acf8de696111a1514e1b3ca01bd21f0a8a72 (diff)
downloadscummvm-rg350-5b086651ba61b8e51c702840bec12cddefb1188e.tar.gz
scummvm-rg350-5b086651ba61b8e51c702840bec12cddefb1188e.tar.bz2
scummvm-rg350-5b086651ba61b8e51c702840bec12cddefb1188e.zip
TOON: For consistency, replace the remaining strncpy by strlcpy
Diffstat (limited to 'engines/toon/font.cpp')
-rw-r--r--engines/toon/font.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/toon/font.cpp b/engines/toon/font.cpp
index c01612084e..2ba4eff652 100644
--- a/engines/toon/font.cpp
+++ b/engines/toon/font.cpp
@@ -197,8 +197,7 @@ void FontRenderer::renderMultiLineText(int16 x, int16 y, const Common::String &o
// divide the text in several lines
// based on number of characters or size of lines.
byte text[1024];
- strncpy((char *)text, origText.c_str(), 1023);
- text[1023] = 0;
+ Common::strlcpy((char *)text, origText.c_str(), 1024);
byte *lines[16];
int32 lineSize[16];