diff options
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r-- | src/fios_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 261a2dad4..dafae596c 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -565,7 +565,7 @@ public: } if (_saveload_mode == SLD_SAVE_GAME || _saveload_mode == SLD_SAVE_SCENARIO) { /* Copy clicked name to editbox */ - ttd_strlcpy(this->text.buf, file->title, this->text.maxsize); + ttd_strlcpy(this->text.buf, file->title, this->text.max_bytes); UpdateTextBufferSize(&this->text); this->SetWidgetDirty(SLWW_SAVE_OSK_TITLE); } |