Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 176393 Details for
Bug 252548
x11-plugins/pidgin-gfire - "an open source plugin for the Pidgin IM client which allows you to connect the Xfire network"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes IP addresses oddities when printed in debug mode
gfire-debug-print-unsigned.patch (text/plain), 2.35 KB, created by
Vince C.
on 2008-12-26 00:26:53 UTC
(
hide
)
Description:
Fixes IP addresses oddities when printed in debug mode
Filename:
MIME Type:
Creator:
Vince C.
Created:
2008-12-26 00:26:53 UTC
Size:
2.35 KB
patch
obsolete
>--- gfire-0.7.1/src/gfire.orig.c 2008-12-25 22:46:58.000000000 +0100 >+++ gfire-0.7.1/src/gfire.c 2008-12-25 22:50:53.000000000 +0100 >@@ -162,10 +162,10 @@ > magic = (guint32 *)gf_buddy->gameip; > if ((NULL != gf_buddy->gameip) && (0 != *magic)) { > >- g_sprintf(ipstr, "%d.%d.%d.%d", gf_buddy->gameip[3], gf_buddy->gameip[2], >+ g_sprintf(ipstr, "%u.%u.%u.%u", gf_buddy->gameip[3], gf_buddy->gameip[2], > gf_buddy->gameip[1], gf_buddy->gameip[0]); > >- gchar * value = g_strdup_printf("%s:%d", ipstr, gf_buddy->gameport); >+ gchar * value = g_strdup_printf("%s:%u", ipstr, gf_buddy->gameport); > purple_notify_user_info_add_pair(user_info,"Server",value); > g_free(value); > >@@ -248,7 +248,7 @@ > gfire_data *gfire = (gfire_data *)gc->proto_data; > gfire->buddies = NULL; > >- purple_debug(PURPLE_DEBUG_MISC, "gfire", "connected source=%d\n",source); >+ purple_debug(PURPLE_DEBUG_MISC, "gfire", "connected source=%u\n",source); > if (!g_list_find(purple_connections_get_all(), gc)) { > close(source); > return; >@@ -1100,7 +1100,7 @@ > gerr = 0; > worked=sworked=g_shell_parse_argv(command, &argcp, &argvp, &gerr); > if (worked) { >- purple_debug(PURPLE_DEBUG_MISC, "gfire", "Attempting to join game %d, on server %d.%d.%d.%d , at port %d\n", >+ purple_debug(PURPLE_DEBUG_MISC, "gfire", "Attempting to join game %u, on server %u.%u.%u.%u , at port %u\n", > game, NNA(sip, sip[3]), NNA(sip, sip[2]), NNA(sip, sip[1]), NNA(sip, sip[0]), sport); > purple_debug(PURPLE_DEBUG_MISC, "gfire", "launch xml command parsed to:\n"); > purple_debug(PURPLE_DEBUG_MISC, "gfire", "%s\n", NN(command)); >@@ -1221,7 +1221,7 @@ > if (len) gfire_send(gc, gfire->buff_out, len); > g_free(ipbin); > gfire->gameid = game; >- purple_debug(PURPLE_DEBUG_MISC, "gfire", "(XQF cb): Detected game join (%d) at (%s:%d)\n", game, >+ purple_debug(PURPLE_DEBUG_MISC, "gfire", "(XQF cb): Detected game join (%u) at (%s:%u)\n", game, > NN(xqfs->ip), xqfs->port ); > gfire_xqf_linfo_free(xqfs); > } else { >--- gfire-0.7.1/src/gf_debug.orig.h 2008-12-26 01:01:29.000000000 +0100 >+++ gfire-0.7.1/src/gf_debug.h 2008-12-26 01:01:51.000000000 +0100 >@@ -31,4 +31,4 @@ > /* define for a binary string, so we never pass a bin array element or > * deference a null binary string to gaim_debug > */ >-#define NNA(ba, bai) (ba ? bai : 0x00) >+#define NNA(ba, bai) (ba ? bai & 0x00FF : 0x00)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252548
:
176391
| 176393 |
176394
|
192249
|
195098
|
199071
|
201650
|
201744
|
203226
|
226329
|
226331
|
226417
|
228387
|
228389
|
228393
|
228457
|
228459
|
230045
|
230047
|
234767
|
264377