summaryrefslogtreecommitdiff
path: root/gui.h
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 /gui.h
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 'gui.h')
-rw-r--r--gui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.h b/gui.h
index f5c024a1d..b291effc7 100644
--- a/gui.h
+++ b/gui.h
@@ -124,7 +124,7 @@ extern const byte _fios_colors[];
/* network gui */
void ShowNetworkGameWindow(void);
-void ShowChatWindow(int maxlen);
+void ShowChatWindow(void);
/* bridge_gui.c */
void ShowBuildBridgeWindow(uint start, uint end, byte type);