aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/adl/adl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/adl/adl.cpp b/engines/adl/adl.cpp
index 92b74d20e9..e9401cbc4d 100644
--- a/engines/adl/adl.cpp
+++ b/engines/adl/adl.cpp
@@ -145,8 +145,10 @@ Common::String AdlEngine::inputString(byte prompt) const {
break;
};
} else {
- s += b;
- _display->printString(Common::String(b));
+ if (s.size() < 255) {
+ s += b;
+ _display->printString(Common::String(b));
+ }
}
}
}