comparison libpurple/buddyicon.c @ 27709:f42fb3f1e5ae

disapproval of revision '2737ff4628bd5f26d780a2ccee47e88fe3765947'
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 19 Jul 2009 22:39:41 +0000
parents 95cc20ede768
children 06740353bfc7
comparison
equal deleted inserted replaced
27708:95cc20ede768 27709:f42fb3f1e5ae
614 static gboolean 614 static gboolean
615 read_icon_file(const char *path, guchar **data, size_t *len) 615 read_icon_file(const char *path, guchar **data, size_t *len)
616 { 616 {
617 GError *err = NULL; 617 GError *err = NULL;
618 618
619 /* maybe mmap the file instead? On my blist, it's about 150K total */
620 if (!g_file_get_contents(path, (gchar **)data, len, &err)) 619 if (!g_file_get_contents(path, (gchar **)data, len, &err))
621 { 620 {
622 purple_debug_error("buddyicon", "Error reading %s: %s\n", 621 purple_debug_error("buddyicon", "Error reading %s: %s\n",
623 path, err->message); 622 path, err->message);
624 g_error_free(err); 623 g_error_free(err);