diff options
author | Einar Johan Trøan Sømåen | 2012-08-11 02:30:07 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-11 02:30:07 +0200 |
commit | c422ae9d8a90aeb63da3e3fdf521323fe6769828 (patch) | |
tree | 9ef6303f4d84bb32f4fb9b2dfea37dc9b5f5ce45 /engines/wintermute/utils | |
parent | d95a2ddef84bb786979affddd95074da79032560 (diff) | |
download | scummvm-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.cpp | 2 |
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;
}
}
|