# HG changeset patch # User Stu Tomlinson # Date 1178222150 0 # Node ID f3874ba27a27efd114acffefb53db65e5e16defc # Parent eda643d941f134356d85b5fa4bc4322705f2c767 Fix calculating SHA1C for buddy icons diff -r eda643d941f1 -r f3874ba27a27 libpurple/protocols/msn/user.c --- 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);