From e16e034ec7788a5cdfb366360d339e8215dee797 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Wed, 29 Apr 2009 18:57:21 +0000 Subject: [PATCH] Use 40 bytes for the "host" (IP address) in GAMESTRUCT, this allows for using IPv6 without breaking protocol combatility again git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7239 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/netplay/netplay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netplay/netplay.h b/lib/netplay/netplay.h index 014270ea1..d3ed9c745 100644 --- a/lib/netplay/netplay.h +++ b/lib/netplay/netplay.h @@ -125,7 +125,7 @@ typedef enum typedef struct { //Available game storage... JUST FOR REFERENCE! int32_t dwSize; int32_t dwFlags; - char host[16]; // host ip address + char host[40]; // host's ip address (can fit a full IPv4 and IPv6 address + terminating NUL) int32_t dwMaxPlayers; int32_t dwCurrentPlayers; int32_t dwUserFlags[4];