aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/utils
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-08-11 02:30:07 +0200
committerEinar Johan Trøan Sømåen2012-08-11 02:30:07 +0200
commitc422ae9d8a90aeb63da3e3fdf521323fe6769828 (patch)
tree9ef6303f4d84bb32f4fb9b2dfea37dc9b5f5ce45 /engines/wintermute/utils
parentd95a2ddef84bb786979affddd95074da79032560 (diff)
downloadscummvm-rg350-c422ae9d8a90aeb63da3e3fdf521323fe6769828.tar.gz
scummvm-rg350-c422ae9d8a90aeb63da3e3fdf521323fe6769828.tar.bz2
scummvm-rg350-c422ae9d8a90aeb63da3e3fdf521323fe6769828.zip
WINTERMUTE: Get rid of strncpy+manual termination.
Diffstat (limited to 'engines/wintermute/utils')
-rw-r--r--engines/wintermute/utils/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/utils/utils.cpp b/engines/wintermute/utils/utils.cpp
index f8a7b0e547..4546750c61 100644
--- a/engines/wintermute/utils/utils.cpp
+++ b/engines/wintermute/utils/utils.cpp
@@ -112,7 +112,7 @@ char *BaseUtils::strEntry(int entry, const char *str, const char delim) {
if (start) {
char *ret = new char[len + 1];
memset(ret, 0, len + 1);
- strncpy(ret, start, len);
+ Common::strlcpy(ret, start, len + 1);
return ret;
}
}