summaryrefslogtreecommitdiff
path: root/network_data.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-21 23:31:34 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-21 23:31:34 +0000
commit494c56475f04f0753d1ef7b8126612d3017df861 (patch)
treebbd2a7ac7e0c3b558bf638e1779108ced158cb6a /network_data.h
parentc15e699479ca81045db05af98ad86452b97572fd (diff)
downloadopenttd-494c56475f04f0753d1ef7b8126612d3017df861.tar.xz
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
The last parameter should point to the end of the buffer (eg lastof(buf)) Courtesy of Tron.
Diffstat (limited to 'network_data.h')
-rw-r--r--network_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/network_data.h b/network_data.h
index 75259e9a6..40a2b5704 100644
--- a/network_data.h
+++ b/network_data.h
@@ -230,7 +230,7 @@ NetworkClientInfo *NetworkFindClientInfoFromIndex(uint16 client_index);
NetworkClientInfo *NetworkFindClientInfoFromIP(const char *ip);
NetworkClientState *NetworkFindClientStateFromIndex(uint16 client_index);
unsigned long NetworkResolveHost(const char *hostname);
-char *GetNetworkErrorMsg(char *buf, NetworkErrorCode err);
+char* GetNetworkErrorMsg(char* buf, NetworkErrorCode err, const char* last);
#endif /* ENABLE_NETWORK */