diff options
author | Strangerke | 2014-05-30 21:33:38 +0200 |
---|---|---|
committer | Strangerke | 2014-05-30 21:33:38 +0200 |
commit | 00a0a412bb52106982dbfaae3c8c0ab3de396dd6 (patch) | |
tree | 5cadb7739d1e96194c8507e16c83c8b1f47f5912 | |
parent | 7f2f4193e68e7d64e20b34c85b241be2a2e3dd1b (diff) | |
download | scummvm-rg350-00a0a412bb52106982dbfaae3c8c0ab3de396dd6.tar.gz scummvm-rg350-00a0a412bb52106982dbfaae3c8c0ab3de396dd6.tar.bz2 scummvm-rg350-00a0a412bb52106982dbfaae3c8c0ab3de396dd6.zip |
CRUISE: Add a safeguard to avoid a buffer overflow
-rw-r--r-- | engines/cruise/volume.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/volume.cpp b/engines/cruise/volume.cpp index 5b125a5142..54bc6f6d80 100644 --- a/engines/cruise/volume.cpp +++ b/engines/cruise/volume.cpp @@ -240,7 +240,7 @@ int16 findFileInDisks(const char *name) { int disk; int fileIdx; - strcpy(fileName, name); + Common::strlcpy(fileName, name, sizeof(fileName)); strToUpper(fileName); if (!volumeDataLoaded) { |