# HG changeset patch # User Nathan Walp # Date 1098076941 0 # Node ID 8490f2e292a6cb0d12eec13cb59e5c74972d7deb # Parent 4b276d2e55893b2eae36482269e8100e83a72ff5 [gaim-migrate @ 11144] cleaning out the 64-bit stuff from my tree...piece by piece committer: Tailor Script diff -r 4b276d2e5589 -r 8490f2e292a6 src/protocols/oscar/oscar.c --- a/src/protocols/oscar/oscar.c Mon Oct 18 01:03:51 2004 +0000 +++ b/src/protocols/oscar/oscar.c Mon Oct 18 05:22:21 2004 +0000 @@ -6482,7 +6482,7 @@ char *buf, *buf2; fu16_t charset, charsubset; char *charsetstr = NULL; - gsize len; + int len; if (!(conv = gaim_find_chat(gc, id))) return -EINVAL; diff -r 4b276d2e5589 -r 8490f2e292a6 src/protocols/yahoo/yahoo_filexfer.c --- a/src/protocols/yahoo/yahoo_filexfer.c Mon Oct 18 01:03:51 2004 +0000 +++ b/src/protocols/yahoo/yahoo_filexfer.c Mon Oct 18 05:22:21 2004 +0000 @@ -117,7 +117,7 @@ pkt = yahoo_packet_new(YAHOO_SERVICE_FILETRANSFER, YAHOO_STATUS_AVAILABLE, yd->session_id); - size = g_strdup_printf("%d", gaim_xfer_get_size(xfer)); + size = g_strdup_printf("%" G_GSIZE_FORMAT, gaim_xfer_get_size(xfer)); yahoo_packet_hash(pkt, 0, gaim_connection_get_display_name(gc)); yahoo_packet_hash(pkt, 5, xfer->who); @@ -131,7 +131,7 @@ buf = g_strdup_printf("Y=%s; T=%s", yd->cookie_y, yd->cookie_t); post = g_strdup_printf("POST /notifyft HTTP/1.0\r\n" - "Content-length: %d\r\n" + "Content-length: %" G_GSIZE_FORMAT "\r\n" "Host: %s:%d\r\n" "Cookie: %s\r\n" "\r\n", diff -r 4b276d2e5589 -r 8490f2e292a6 src/protocols/yahoo/yahoo_picture.c --- a/src/protocols/yahoo/yahoo_picture.c Mon Oct 18 01:03:51 2004 +0000 +++ b/src/protocols/yahoo/yahoo_picture.c Mon Oct 18 05:22:21 2004 +0000 @@ -407,7 +407,7 @@ pkt = yahoo_packet_new(0xc2, YAHOO_STATUS_AVAILABLE, yd->session_id); - size = g_strdup_printf("%d", d->str->len); + size = g_strdup_printf("%" G_GSIZE_FORMAT, d->str->len); /* 1 = me, 38 = expire time(?), 0 = me, 28 = size, 27 = filename, 14 = NULL, 29 = data */ yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); yahoo_packet_hash(pkt, 38, "604800"); /* time til expire */ @@ -422,7 +422,7 @@ buf = g_strdup_printf("Y=%s; T=%s", yd->cookie_y, yd->cookie_t); post = g_strdup_printf("POST /notifyft HTTP/1.0\r\n" - "Content-length: %d\r\n" + "Content-length: %" G_GSIZE_FORMAT "\r\n" "Host: %s:%d\r\n" "Cookie: %s\r\n" "\r\n", diff -r 4b276d2e5589 -r 8490f2e292a6 src/protocols/zephyr/zephyr.c --- a/src/protocols/zephyr/zephyr.c Mon Oct 18 01:03:51 2004 +0000 +++ b/src/protocols/zephyr/zephyr.c Mon Oct 18 05:22:21 2004 +0000 @@ -2403,12 +2403,13 @@ gaim_debug_info("zephyr", "who is null\n"); recipient = local_zephyr_normalize(zephyr,""); } else { + char *comma = strrchr(who, ','); /* Don't ping broadcast (chat) recipients */ /* The strrchr case finds a realm-stripped broadcast subscription e.g. comma is the last character in the string */ - if ((strrchr(who, ',') && ((strrchr(who, ',') == (who+strlen(who)-1)) || ((char *)(strrchr(who, ',')[1] == '@'))))) + if (comma && ( (*(comma+1) == '\0') || (*(comma+1) == '@'))) return 0; - + recipient = local_zephyr_normalize(zephyr,who); }