Mercurial > pidgin.yaz
changeset 8208:bfbba1a7710a
[gaim-migrate @ 8931]
A patch from Evan Schoenberg to do IP addresses correctly in
gaim_xfers_get_local_system_ip().
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 05 Feb 2004 04:03:18 +0000 |
parents | aa44049e8891 |
children | aa474aa7655d |
files | COPYRIGHT src/ft.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Wed Feb 04 06:26:54 2004 +0000 +++ b/COPYRIGHT Thu Feb 05 04:03:18 2004 +0000 @@ -92,6 +92,7 @@ Neil Sanchala Carsten Schaar Luke Schierer +Evan Schoenberg Torrey Searle Jim Seymour John Silvestri
--- a/src/ft.c Wed Feb 04 06:26:54 2004 +0000 +++ b/src/ft.c Thu Feb 05 04:03:18 2004 +0000 @@ -803,7 +803,11 @@ memcpy(&add, host->h_addr_list[0], 4); add = htonl(add); - g_snprintf(ip, 11, "%lu", add); + g_snprintf(ip, 16, "%lu.%lu.%lu.%lu", + ((add >> 24) & 255), + ((add >> 16) & 255), + ((add >> 8) & 255), + add & 255); return ip; }