changeset 16849:f3874ba27a27

Fix calculating SHA1C for buddy icons
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 03 May 2007 19:55:50 +0000
parents eda643d941f1
children 9bbae267b314 a82444e61ece
files libpurple/protocols/msn/user.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/user.c	Thu May 03 19:16:24 2007 +0000
+++ b/libpurple/protocols/msn/user.c	Thu May 03 19:55:50 2007 +0000
@@ -207,7 +207,7 @@
 		memset(digest, 0, sizeof(digest));
 
 		purple_cipher_context_reset(ctx, NULL);
-		purple_cipher_context_append(ctx, data, strlen((char *)data));
+		purple_cipher_context_append(ctx, (const guchar *)buf, strlen(buf));
 		purple_cipher_context_digest(ctx, sizeof(digest), digest, NULL);
 		purple_cipher_context_destroy(ctx);
 		g_free(buf);