diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/netlibsock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/netlibsock.cpp b/src/mir_app/src/netlibsock.cpp index a2cbfbe5a1..afe705d98d 100644 --- a/src/mir_app/src/netlibsock.cpp +++ b/src/mir_app/src/netlibsock.cpp @@ -200,7 +200,7 @@ MIR_APP_DLL(char*) Netlib_AddressToString(sockaddr_in *addr) if (addr->sin_family == AF_INET) {
char *szIp = inet_ntoa(addr->sin_addr);
if (addr->sin_port != 0) {
- mir_snprintf(saddr, "%s:%d", szIp, htons(addr->sin_port));
+ mir_snprintf(saddr, "%s:%d", szIp, addr->sin_port);
return mir_strdup(saddr);
}
return mir_strdup(szIp);
|