diff options
author | Darkvater <Darkvater@openttd.org> | 2006-10-21 23:31:34 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-10-21 23:31:34 +0000 |
commit | 494c56475f04f0753d1ef7b8126612d3017df861 (patch) | |
tree | bbd2a7ac7e0c3b558bf638e1779108ced158cb6a /network_data.h | |
parent | c15e699479ca81045db05af98ad86452b97572fd (diff) | |
download | openttd-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.h | 2 |
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 */ |