Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/dcc_send.c @ 32758:89fa8261e241
Update IRC for 64-bit file transfers. This probably won't really make
much of a difference, since there seems to be lots of 4-byte sizes
passed around. This really just fixes the printf so it doesn't do
something wrong.
Refs #8477.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 16 Oct 2011 07:47:40 +0000 |
parents | d2ef8926b960 |
children | 1f56d5102483 |
comparison
equal
deleted
inserted
replaced
32757:9bbfb9d74085 | 32758:89fa8261e241 |
---|---|
317 irc_dccsend_send_connected, xfer); | 317 irc_dccsend_send_connected, xfer); |
318 | 318 |
319 /* Send the intended recipient the DCC request */ | 319 /* Send the intended recipient the DCC request */ |
320 arg[0] = purple_xfer_get_remote_user(xfer); | 320 arg[0] = purple_xfer_get_remote_user(xfer); |
321 inet_aton(purple_network_get_my_ip(irc->fd), &addr); | 321 inet_aton(purple_network_get_my_ip(irc->fd), &addr); |
322 arg[1] = tmp = g_strdup_printf("\001DCC SEND \"%s\" %u %hu %" G_GSIZE_FORMAT "\001", | 322 arg[1] = tmp = g_strdup_printf("\001DCC SEND \"%s\" %u %hu %" G_GOFFSET_FORMAT "\001", |
323 purple_xfer_get_filename(xfer), ntohl(addr.s_addr), | 323 purple_xfer_get_filename(xfer), ntohl(addr.s_addr), |
324 port, purple_xfer_get_size(xfer)); | 324 port, purple_xfer_get_size(xfer)); |
325 | 325 |
326 irc_cmd_privmsg(purple_connection_get_protocol_data(gc), "msg", NULL, arg); | 326 irc_cmd_privmsg(purple_connection_get_protocol_data(gc), "msg", NULL, arg); |
327 g_free(tmp); | 327 g_free(tmp); |