mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
Fix g_inet_address_to_string() on XP
[This patch originally also included an equivalent to the fix that was
committed in 3e29dada
, but that was not the complete fix for the bug.]
https://bugzilla.gnome.org/show_bug.cgi?id=749911
This commit is contained in:
parent
93dadb17ce
commit
a4c3ab58cc
@ -446,7 +446,7 @@ inet_ntop (gint family,
|
||||
else
|
||||
{
|
||||
/* Fallback codepath for XP/Server 2003 */
|
||||
DWORD buflen = sizeof (addr_str), addrlen;
|
||||
DWORD buflen = size, addrlen;
|
||||
struct sockaddr_storage sa;
|
||||
struct sockaddr_in *sin = (struct sockaddr_in *)&sa;
|
||||
struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa;
|
||||
|
Loading…
Reference in New Issue
Block a user