aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser.cpp
diff options
context:
space:
mode:
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;