changeset 11521:d41aabad3b7a

[gaim-migrate @ 13769] Vanquish a C99ism committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 12 Sep 2005 05:44:03 +0000
parents 2fdd2bd7755a
children a26eb48d1953
files src/protocols/jabber/buddy.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c	Sun Sep 11 18:29:17 2005 +0000
+++ b/src/protocols/jabber/buddy.c	Mon Sep 12 05:44:03 2005 +0000
@@ -387,11 +387,11 @@
 			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];
 
+				avatar_data = (guchar *) avatar_data_tmp;
 				photo = xmlnode_new_child(vc_node, "PHOTO");
 				binval = xmlnode_new_child(photo, "BINVAL");
 				enc = gaim_base64_encode(avatar_data, avatar_len);