summaryrefslogtreecommitdiff
path: root/misc_gui.c
diff options
context:
space:
mode:
authormiham <miham@openttd.org>2006-05-02 17:28:29 +0000
committermiham <miham@openttd.org>2006-05-02 17:28:29 +0000
commit91a60046975434afdc08163e9914dbd104cf9778 (patch)
tree6a991a11f778648f3e62b7b9744457c59ee9ee06 /misc_gui.c
parent5f3b7b10a37e36c3de078829050731dbe0223363 (diff)
downloadopenttd-91a60046975434afdc08163e9914dbd104cf9778.tar.xz
(svn r4690) [Fix] Fixed ShowQueryString() to close FS#151
Diffstat (limited to 'misc_gui.c')
-rw-r--r--misc_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_gui.c b/misc_gui.c
index 8bd360e41..be6ba7ced 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -194,7 +194,7 @@ static const char *credits[] = {
" Matthijs Kooijman (blathijs) - Pathfinder-god",
" Victor Fischer (Celestar) - Programming everywhere you need him to",
" Tamás Faragó (Darkvater) - Lead coder",
- " Kerekes Miham (MiHaMiX) - Translator system, and Nightlies host",
+ " Attila Bán (MiHaMiX) - WebTranslator, Nightlies, Wiki and bugtracker host",
" Owen Rudge (orudge) - Forum- and masterserver host, OS/2 port",
" Peter Nelson (peter1138) - Spiritual descendant from newgrf gods",
" Christoph Mallon (Tron) - Programmer, code correctness police",
@@ -1065,7 +1065,7 @@ void ShowQueryString(StringID str, StringID caption, uint maxlen, uint maxwidth,
w = AllocateWindowDesc(&_query_string_desc);
GetString(_edit_str_buf, str);
- _edit_str_buf[realmaxlen] = '\0';
+ _edit_str_buf[realmaxlen-1] = '\0';
if (maxlen & 0x1000) {
WP(w, querystr_d).orig = NULL;