summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Doliner <markdoliner@pidgin.im>2004-05-30 17:05:21 +0000
committerMark Doliner <markdoliner@pidgin.im>2004-05-30 17:05:21 +0000
commit45b3e6b96bb860a9ef97e21e5def00554cb58749 (patch)
tree7ff30a8db12eeec50a24e3e293811ae4e0678378
parent56ccbbc8fd82c086eda8c3ff02458c07dcf70418 (diff)
downloadpidgin-0.78.tar.gz
[gaim-migrate @ 9903]v0.78
gcc 2.95 or something doesn't have %z, or something
-rw-r--r--src/protocols/oscar/oscar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocols/oscar/oscar.c b/src/protocols/oscar/oscar.c
index 119849fb10..b928958706 100644
--- a/src/protocols/oscar/oscar.c
+++ b/src/protocols/oscar/oscar.c
@@ -1205,7 +1205,7 @@ static int gaim_odc_send_im(aim_session_t *sess, aim_conn_t *conn, const char *m
/* ... 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 @@ static int gaim_odc_send_im(aim_session_t *sess, aim_conn_t *conn, const char *m
/* ... 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>");