mirror of https://github.com/OpenTTD/OpenTTD
(svn r4730) - Backport from trunk (r4690):
Fix (r4668, br4301): Editing a too long string in the editbox resulted in improper strings Update about box with Mihamix's real namerelease/0.4
parent
63a1bc7ee7
commit
660d991cc1
|
@ -194,7 +194,7 @@ static const char *credits[] = {
|
||||||
" Matthijs Kooijman (blathijs) - Pathfinder-god",
|
" Matthijs Kooijman (blathijs) - Pathfinder-god",
|
||||||
" Victor Fischer (Celestar) - Programming everywhere you need him to",
|
" Victor Fischer (Celestar) - Programming everywhere you need him to",
|
||||||
" Tamás Faragó (Darkvater) - Lead coder",
|
" 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",
|
" Owen Rudge (orudge) - Forum- and masterserver host, OS/2 port",
|
||||||
" Peter Nelson (peter1138) - Spiritual descendant from newgrf gods",
|
" Peter Nelson (peter1138) - Spiritual descendant from newgrf gods",
|
||||||
" Christoph Mallon (Tron) - Programmer, code correctness police",
|
" 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);
|
w = AllocateWindowDesc(&_query_string_desc);
|
||||||
|
|
||||||
GetString(_edit_str_buf, str);
|
GetString(_edit_str_buf, str);
|
||||||
_edit_str_buf[realmaxlen] = '\0';
|
_edit_str_buf[realmaxlen-1] = '\0';
|
||||||
|
|
||||||
if (maxlen & 0x1000) {
|
if (maxlen & 0x1000) {
|
||||||
WP(w, querystr_d).orig = NULL;
|
WP(w, querystr_d).orig = NULL;
|
||||||
|
|
Loading…
Reference in New Issue