changeset 11509:fca94aa83486

[gaim-migrate @ 13754] I thought I understood this type-punned pointer stuff, perhaps I'm wrong. Why is a gchar ** considered incompatable with a guchar **? committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 11 Sep 2005 15:51:45 +0000
parents c04d93398852
children 25699eed3c37
files src/protocols/jabber/buddy.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c	Sun Sep 11 15:38:22 2005 +0000
+++ b/src/protocols/jabber/buddy.c	Sun Sep 11 15:51:45 2005 +0000
@@ -380,12 +380,14 @@
 		if (vc_node->name &&
 				!g_ascii_strncasecmp(vc_node->name, "vCard", 5)) {
 			GError *error = NULL;
-			unsigned char *avatar_data;
+			gchar *avatar_data_tmp;
+			guchar *avatar_data;
 			gsize avatar_len;
 
-			if(avatar_file && g_file_get_contents(avatar_file, (gchar **)&avatar_data, &avatar_len, &error)) {
+			if(avatar_file && g_file_get_contents(avatar_file, &avatar_data_tmp, &avatar_len, &error)) {
 				xmlnode *photo, *binval;
 				gchar *enc;
+				avatar_data = (guchar *) avatar_data_tmp;
 				int i;
 				unsigned char hashval[20];
 				char *p, hash[41];