comparison src/protocols/oscar/oscar.c @ 2357:d6d3d2e6d625

[gaim-migrate @ 2370] what the hell committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 24 Sep 2001 21:41:19 +0000
parents 182a4f8b1333
children 554b001d7d98
comparison
equal deleted inserted replaced
2356:ddf404cd9757 2357:d6d3d2e6d625
1309 if (!stat(gc->user->iconfile, &st)) { 1309 if (!stat(gc->user->iconfile, &st)) {
1310 char *buf = g_malloc(st.st_size); 1310 char *buf = g_malloc(st.st_size);
1311 file = fopen(gc->user->iconfile, "r"); 1311 file = fopen(gc->user->iconfile, "r");
1312 if (file) { 1312 if (file) {
1313 fread(buf, 1, st.st_size, file); 1313 fread(buf, 1, st.st_size, file);
1314 debug_printf("Sending buddy icon to %d\n", userinfo->sn); 1314 debug_printf("Sending buddy icon to %s\n", userinfo->sn);
1315 aim_send_icon(sess, conn, userinfo->sn, buf, st.st_size, 1315 aim_send_icon(sess, conn, userinfo->sn, buf, st.st_size,
1316 st.st_mtime, aim_iconsum(buf, st.st_size)); 1316 st.st_mtime, aim_iconsum(buf, st.st_size));
1317 fclose(file); 1317 fclose(file);
1318 } else 1318 } else
1319 debug_printf("Can't open buddy icon file!\n"); 1319 debug_printf("Can't open buddy icon file!\n");