mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(Network) Fix getnameinfo_retro's port value for HAVE_SOCKET_LEGACY platforms (#14303)
This commit is contained in:
parent
5ffe62a52b
commit
d3f3c58e61
@ -376,7 +376,7 @@ int getnameinfo_retro(const struct sockaddr *addr, socklen_t addrlen,
|
||||
NI_NUMERICSERV (always enforced)
|
||||
*/
|
||||
if (serv && servlen)
|
||||
snprintf(serv, servlen, "%hu", (unsigned short)addr4->sin_port);
|
||||
snprintf(serv, servlen, "%hu", (unsigned short)ntohs(addr4->sin_port));
|
||||
|
||||
return 0;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user