Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 2603:24664768a739
[gaim-migrate @ 2616]
i shouldn't have modified gaim.h like i did. *slaps own wrists* Do as I say, not as I do.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 25 Oct 2001 05:05:05 +0000 |
parents | 2ced57c58653 |
children | 6781ee2b9db0 |
comparison
equal
deleted
inserted
replaced
2602:c9192dea2bb1 | 2603:24664768a739 |
---|---|
1336 | 1336 |
1337 if (!stat(gc->user->iconfile, &st)) { | 1337 if (!stat(gc->user->iconfile, &st)) { |
1338 char *buf = g_malloc(st.st_size); | 1338 char *buf = g_malloc(st.st_size); |
1339 file = fopen(gc->user->iconfile, "r"); | 1339 file = fopen(gc->user->iconfile, "r"); |
1340 if (file) { | 1340 if (file) { |
1341 fread(buf, 1, st.st_size, file); | 1341 int len = fread(buf, 1, st.st_size, file); |
1342 debug_printf("Sending buddy icon to %s\n", userinfo->sn); | 1342 debug_printf("Sending buddy icon to %s (%d bytes, %d reported)\n", |
1343 userinfo->sn, len, st.st_size); | |
1343 aim_send_icon(sess, conn, userinfo->sn, buf, st.st_size, | 1344 aim_send_icon(sess, conn, userinfo->sn, buf, st.st_size, |
1344 st.st_mtime, aim_iconsum(buf, st.st_size)); | 1345 st.st_mtime, aim_iconsum(buf, st.st_size)); |
1345 fclose(file); | 1346 fclose(file); |
1346 } else | 1347 } else |
1347 debug_printf("Can't open buddy icon file!\n"); | 1348 debug_printf("Can't open buddy icon file!\n"); |