aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/intro.cpp
diff options
context:
space:
mode:
authorStrangerke2015-12-19 17:32:23 +0100
committerWillem Jan Palenstijn2015-12-23 21:35:30 +0100
commita2097d2a2eb9d7abfcb4f73b1c45c3778f39f3ca (patch)
treec34b77430856010ce21e97dc2b2c5a58eb516b93 /engines/lab/intro.cpp
parentd827faf1561123a87fec12c18ac584bac5f6afa4 (diff)
downloadscummvm-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.cpp5
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;