Mercurial > pidgin
changeset 9126:cefe59828f90
[gaim-migrate @ 9903]
gcc 2.95 or something doesn't have %z, or something
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 30 May 2004 17:05:21 +0000 |
parents | 668ffb8fec00 |
children | f4d981c9c4ab |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sun May 30 16:54:40 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sun May 30 17:05:21 2004 +0000 @@ -1205,7 +1205,7 @@ /* ... if it refers to a valid gaim image ... */ if (id && (image = gaim_imgstore_get(atoi(id)))) { /* ... append the message from start to the tag ... */ - size_t size = gaim_imgstore_get_size(image); + unsigned long size = gaim_imgstore_get_size(image); const char *filename = gaim_imgstore_get_filename(image); gpointer imgdata = gaim_imgstore_get_data(image); @@ -1214,15 +1214,15 @@ /* ... insert a new img tag with the oscar id ... */ if (filename) g_string_append_printf(msg, - "<IMG SRC=\"%s\" ID=\"%d\" DATASIZE=\"%zu\">", + "<IMG SRC=\"%s\" ID=\"%d\" DATASIZE=\"%lu\">", filename, oscar_id, size); else g_string_append_printf(msg, - "<IMG ID=\"%d\" DATASIZE=\"%zu\">", + "<IMG ID=\"%d\" DATASIZE=\"%lu\">", oscar_id, size); /* ... and append the data to the binary section ... */ - g_string_append_printf(data, "<DATA ID=\"%d\" SIZE=\"%zu\">", + g_string_append_printf(data, "<DATA ID=\"%d\" SIZE=\"%lu\">", oscar_id, size); data = g_string_append_len(data, imgdata, size); data = g_string_append(data, "</DATA>");