aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-08-16 17:28:18 +0000
committerNicola Mettifogo2007-08-16 17:28:18 +0000
commitf0f46113ee103e922ecde5f32652a482899c7e61 (patch)
treef64d178e1ac84dc135fef556c4ba53b944a24fdf /engines/parallaction/parser.cpp
parentc987d6aaf0744e088c3119d7270e8a02ad47044a (diff)
downloadscummvm-rg350-f0f46113ee103e922ecde5f32652a482899c7e61.tar.gz
scummvm-rg350-f0f46113ee103e922ecde5f32652a482899c7e61.tar.bz2
scummvm-rg350-f0f46113ee103e922ecde5f32652a482899c7e61.zip
Changed more parsing routines to use tables instead of switch statements.
svn-id: r28637
Diffstat (limited to 'engines/parallaction/parser.cpp')
-rw-r--r--engines/parallaction/parser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/parallaction/parser.cpp b/engines/parallaction/parser.cpp
index d786cc6487..34b5e02f8e 100644
--- a/engines/parallaction/parser.cpp
+++ b/engines/parallaction/parser.cpp
@@ -103,8 +103,7 @@ char *Parallaction::parseComment(Script &script) {
strcat(_tmp_comment, " ");
} while (true);
- v194 = (char*)malloc(strlen(_tmp_comment)+1);
- strcpy(v194, _tmp_comment);
+ v194 = strdup(_tmp_comment);
_tmp_comment[0] = '\0';
return v194;