summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-07 09:07:53 +0000
committertron <tron@openttd.org>2006-04-07 09:07:53 +0000
commit10454a6dd136e4d0abff667c12256f1761078f22 (patch)
tree5b51a3d0a1e854a6a85712de15b3ef44a75c7e93 /main_gui.c
parent3ef6afdb4d0f3b4c327e8570c123d487b631d49a (diff)
downloadopenttd-10454a6dd136e4d0abff667c12256f1761078f22.tar.xz
(svn r4314) -Fix: a buffer overflow of the chat box introduced in r1263. Don't tell the Textbuf an arbitrary number as size of the string buffer, but the real lengthof() it
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_gui.c b/main_gui.c
index 87750ad25..d22931528 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -332,7 +332,7 @@ void ShowNetworkChatQueryWindow(byte desttype, byte dest)
{
_rename_id = desttype + (dest << 8);
_rename_what = 2;
- ShowChatWindow(150);
+ ShowChatWindow();
}
void ShowNetworkGiveMoneyWindow(byte player)