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
commitf9316c5a6587364900e3148bd2e4b5d118caf08d (patch)
tree6a991a11f778648f3e62b7b9744457c59ee9ee06 /misc_gui.c
parent387ce97c2830fd2551e665d4bcb698229dda0a11 (diff)
downloadopenttd-f9316c5a6587364900e3148bd2e4b5d118caf08d.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;