changeset 4479:53723b58fe15

[gaim-migrate @ 4754] win32 fix for sending buddy icons committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Thu, 30 Jan 2003 20:54:48 +0000
parents fa2d74e20a89
children a4a87d79c67c
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Thu Jan 30 19:24:48 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Thu Jan 30 20:54:48 2003 +0000
@@ -1819,7 +1819,7 @@
 
 		if (!stat(gc->user->iconfile, &st)) {
 			char *buf = g_malloc(st.st_size);
-			file = fopen(gc->user->iconfile, "r");
+			file = fopen(gc->user->iconfile, "rb");
 			if (file) {
 				int len = fread(buf, 1, st.st_size, file);
 				debug_printf("Sending buddy icon to %s (%d bytes, %lu reported)\n",