# HG changeset patch # User Marcus Lundblad # Date 1269296615 0 # Node ID e3eda7aa06532e07f59cb6e5c4aadd33cd093431 # Parent 9f59abd49def45e724615a4fdae347db11a6f107 jabber: Use a 129 byte buffer to fit the hex output of SHA-512 (including \0) (I believe purple_cipher_digest_to_str should check the input length). Maybe we should add way for ciphers to report the digest length... diff -r 9f59abd49def -r e3eda7aa0653 libpurple/protocols/jabber/jutil.c --- a/libpurple/protocols/jabber/jutil.c Mon Mar 22 21:34:17 2010 +0000 +++ b/libpurple/protocols/jabber/jutil.c Mon Mar 22 22:23:35 2010 +0000 @@ -733,7 +733,7 @@ const gchar *hash_algo) { PurpleCipherContext *context; - static gchar digest[41]; + static gchar digest[129]; /* 512 bits hex + \0 */ context = purple_cipher_context_new_by_name(hash_algo, NULL); if (context == NULL)