diff options
author | Strangerke | 2014-03-16 14:24:45 +0100 |
---|---|---|
committer | Strangerke | 2014-03-16 14:24:45 +0100 |
commit | 95728f48904ad20f0a36b33d0bd30e4bccc9fa21 (patch) | |
tree | 257c8d92a1c7779c3328882c2b28f46b012adcf4 /engines/cine/bg.cpp | |
parent | 8f6971ae61559cefae92efc6feca4a4373a35b55 (diff) | |
download | scummvm-rg350-95728f48904ad20f0a36b33d0bd30e4bccc9fa21.tar.gz scummvm-rg350-95728f48904ad20f0a36b33d0bd30e4bccc9fa21.tar.bz2 scummvm-rg350-95728f48904ad20f0a36b33d0bd30e4bccc9fa21.zip |
CINE: Avoid possible string buffer overrun by using strlcpy and strlcat
Diffstat (limited to 'engines/cine/bg.cpp')
-rw-r--r-- | engines/cine/bg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cine/bg.cpp b/engines/cine/bg.cpp index 3b80a9c037..ce808e0f6a 100644 --- a/engines/cine/bg.cpp +++ b/engines/cine/bg.cpp @@ -48,7 +48,7 @@ byte loadCtFW(const char *ctName) { } if (currentCtName != ctName) - strcpy(currentCtName, ctName); + Common::strlcpy(currentCtName, ctName, sizeof(currentCtName)); ptr = dataPtr = readBundleFile(foundFileIdx); @@ -75,7 +75,7 @@ byte loadCtOS(const char *ctName) { } if (currentCtName != ctName) - strcpy(currentCtName, ctName); + Common::strlcpy(currentCtName, ctName, sizeof(currentCtName)); ptr = dataPtr = readBundleFile(foundFileIdx); |