summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-08 01:22:57 +0000
committerrubidium <rubidium@openttd.org>2009-04-08 01:22:57 +0000
commita5a424ce2811a09d784805d8f3049f77852ab958 (patch)
tree2d9a083d8a38940bb8dfe1e5dda50e31f0c7bcf1 /src/network/core
parent20e82c46d3d983311f9d67c15adcb6e5c86ec567 (diff)
downloadopenttd-a5a424ce2811a09d784805d8f3049f77852ab958.tar.xz
(svn r15978) -Codechange: support parsing [] enclosed IPv6 addresses.
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/address.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/address.h b/src/network/core/address.h
index 0d0f61f7e..e0ef9889b 100644
--- a/src/network/core/address.h
+++ b/src/network/core/address.h
@@ -96,7 +96,7 @@ public:
if (StrEmpty(hostname)) hostname = "";
if (*hostname == '[') hostname++;
strecpy(this->hostname, StrEmpty(hostname) ? "" : hostname, lastof(this->hostname));
- char *tmp = strrchr(hostname, ']');
+ char *tmp = strrchr(this->hostname, ']');
if (tmp != NULL) *tmp = '\0';
memset(&this->address, 0, sizeof(this->address));