comparison src/protocols/oscar/oscar.c @ 13827:6c3c8d0d389f

[gaim-migrate @ 16271] Some comment changes committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 17 Jun 2006 01:33:09 +0000
parents 5651cf120744
children a9ff4499d9ce
comparison
equal deleted inserted replaced
13826:475aed3aacfc 13827:6c3c8d0d389f
1901 if (!g_stat(iconfile, &st)) { 1901 if (!g_stat(iconfile, &st)) {
1902 guchar *buf = g_malloc(st.st_size); 1902 guchar *buf = g_malloc(st.st_size);
1903 file = g_fopen(iconfile, "rb"); 1903 file = g_fopen(iconfile, "rb");
1904 if (file) { 1904 if (file) {
1905 /* XXX - Use g_file_get_contents() */ 1905 /* XXX - Use g_file_get_contents() */
1906 /* g_file_get_contents(iconfile, &data, &len, NULL); */
1906 int len = fread(buf, 1, st.st_size, file); 1907 int len = fread(buf, 1, st.st_size, file);
1907 gaim_debug_info("oscar", 1908 gaim_debug_info("oscar",
1908 "Sending buddy icon to %s (%d bytes, " 1909 "Sending buddy icon to %s (%d bytes, "
1909 "%lu reported)\n", 1910 "%lu reported)\n",
1910 userinfo->sn, len, st.st_size); 1911 userinfo->sn, len, st.st_size);