diff options
author | Strangerke | 2015-12-19 17:32:23 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:35:30 +0100 |
commit | a2097d2a2eb9d7abfcb4f73b1c45c3778f39f3ca (patch) | |
tree | c34b77430856010ce21e97dc2b2c5a58eb516b93 /engines/lab/intro.cpp | |
parent | d827faf1561123a87fec12c18ac584bac5f6afa4 (diff) | |
download | scummvm-rg350-a2097d2a2eb9d7abfcb4f73b1c45c3778f39f3ca.tar.gz scummvm-rg350-a2097d2a2eb9d7abfcb4f73b1c45c3778f39f3ca.tar.bz2 scummvm-rg350-a2097d2a2eb9d7abfcb4f73b1c45c3778f39f3ca.zip |
LAB: Get rid of strcat by using Common::String
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r-- | engines/lab/intro.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp index 2d2c55d09d..be52e2979d 100644 --- a/engines/lab/intro.cpp +++ b/engines/lab/intro.cpp @@ -71,8 +71,7 @@ void Intro::introEatMessages() { * Reads in a picture. */ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) { - char path[50] = "Lab:rooms/Intro/"; - strcat(path, filename); + Common::String path = Common::String("Lab:rooms/Intro/") + filename; uint timeDelay = (isScreen) ? 35 : 7; _vm->_music->updateMusic(); @@ -85,7 +84,7 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) { bool doneFl = false; bool begin = true; - Common::File *textFile = _vm->_resource->openDataFile(path); + Common::File *textFile = _vm->_resource->openDataFile(path.c_str()); byte *textBuffer = new byte[textFile->size()]; textFile->read(textBuffer, textFile->size()); delete textFile; |