diff options
Diffstat (limited to 'engines/parallaction/dialogue.cpp')
-rw-r--r-- | engines/parallaction/dialogue.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index 8d4e8f3e9d..93f2054c9e 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -179,11 +179,7 @@ char *Parallaction::parseDialogueString(Script &script) { vD0[strlen(vD0)-1] = '\0'; // deletes the trailing '0xA' // this is critical for Gfx::displayWrappedString to work properly - - char *vCC = (char*)malloc(strlen(vD0)+1); - strcpy(vCC, vD0); - - return vCC; + return strdup(vD0); } class DialogueManager { |