diff options
Diffstat (limited to 'engines/m4/dialogs.cpp')
-rw-r--r-- | engines/m4/dialogs.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/m4/dialogs.cpp b/engines/m4/dialogs.cpp index 2b2c479673..2a36fa037c 100644 --- a/engines/m4/dialogs.cpp +++ b/engines/m4/dialogs.cpp @@ -80,7 +80,7 @@ void Dialog::writeChars(const char *srcLine) { while (*srcP) { bool wordEndedP = false, newlineP = false; char *destP = &wordStr[0]; - Common::set_to(&wordStr[0], &wordStr[80], 0); + Common::fill(&wordStr[0], &wordStr[80], 0); // Try and get the next word for (;;) { @@ -117,8 +117,6 @@ void Dialog::writeChars(const char *srcLine) { destP = &wordStr[0]; *destP = '\0'; - lineLen = strlen(wordStr); - strcpy(line, ""); if (_lineX > 0) strcat(line, " "); |