mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-23 14:39:08 +00:00
(svn r4690) [Fix] Fixed ShowQueryString() to close FS#151
This commit is contained in:
@@ -194,7 +194,7 @@ static const char *credits[] = {
|
||||
" Matthijs Kooijman (blathijs) - Pathfinder-god",
|
||||
" Victor Fischer (Celestar) - Programming everywhere you need him to",
|
||||
" Tam<61>s Farag<61> (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;
|
||||
|
Reference in New Issue
Block a user