diff options
author | Walter van Niftrik | 2016-03-08 11:04:08 +0100 |
---|---|---|
committer | Walter van Niftrik | 2016-03-09 10:03:13 +0100 |
commit | ac39224958f6433a98da53606ce57ec8b3f123ee (patch) | |
tree | f4e6021c6f5768e9ebacf4f2ac845cf2d5b2490c /engines | |
parent | d01da596ef596883847d6c3da2b714367e314a06 (diff) | |
download | scummvm-rg350-ac39224958f6433a98da53606ce57ec8b3f123ee.tar.gz scummvm-rg350-ac39224958f6433a98da53606ce57ec8b3f123ee.tar.bz2 scummvm-rg350-ac39224958f6433a98da53606ce57ec8b3f123ee.zip |
ADL: Limit keyboard input to 256 characters
Diffstat (limited to 'engines')
-rw-r--r-- | engines/adl/adl.cpp | 6 |
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)); + } } } } |