diff options
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/address.h | 2 |
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)); |