diff options
author | George Hazan <ghazan@miranda.im> | 2019-04-15 18:37:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-04-15 18:37:53 +0300 |
commit | 5b9675f0504e65ccee46b1ecc304d14e4f0da770 (patch) | |
tree | bad374127fba210ed4b6e8a566bc92ef7c630aea /src | |
parent | 680873487c4a7987012606119a744e5ca725ad30 (diff) |
merge of fixes with trunk
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);
|