aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/text.cpp')
-rw-r--r--engines/agi/text.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 7e8d569fea..853ede650e 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -224,8 +224,9 @@ void AgiEngine::printTextConsole(const char *msg, int x, int y, int len, int fg,
*
* Based on GBAGI implementaiton with permission from the author
*/
-char *AgiEngine::wordWrapString(char *s, int *len) {
- char *pWord, *outStr, *msgBuf, maxWidth = *len;
+char *AgiEngine::wordWrapString(const char *s, int *len) {
+ char *outStr, *msgBuf, maxWidth = *len;
+ const char *pWord;
int lnLen, wLen;
msgBuf = outStr = strdup(s);