diff options
author | Wouter Paesen <wouter@blue-gate.be> | 2015-05-26 17:03:50 +0200 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2015-06-29 10:46:21 -0400 |
commit | a4c3ab58ccf32b0f50ce6f78fa7d18ee5745d510 (patch) | |
tree | de2021a4f6cedcc177f7e2ad070823cd2034af40 /gio/ginetaddress.c | |
parent | 93dadb17ce9840a6c835f89984350edfb68a5946 (diff) | |
download | glib-a4c3ab58ccf32b0f50ce6f78fa7d18ee5745d510.tar.gz |
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
Diffstat (limited to 'gio/ginetaddress.c')
-rw-r--r-- | gio/ginetaddress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c index 39610ae97..9e069a463 100644 --- a/gio/ginetaddress.c +++ b/gio/ginetaddress.c @@ -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; |