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
commit0099dc31f52135ea3b23daaa03a5ee51810538b8 (patch)
tree5b51a3d0a1e854a6a85712de15b3ef44a75c7e93 /main_gui.c
parent59f0e69521f54f5118ecacb7bee1388ba891bf87 (diff)
downloadopenttd-0099dc31f52135ea3b23daaa03a5ee51810538b8.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)