From 5b9675f0504e65ccee46b1ecc304d14e4f0da770 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Apr 2019 18:37:53 +0300 Subject: merge of fixes with trunk --- src/mir_app/src/netlibsock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3