Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.c @ 6052:c062c4bf58ac
[gaim-migrate @ 6502]
Should fix the ctrl+a/ctrl+home/ctrl+end crashes.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 07 Jul 2003 04:44:36 +0000 |
parents | a170c50b2a48 |
children | 74b281b4ae29 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Mon Jul 07 02:59:13 2003 +0000 +++ b/src/protocols/oscar/oscar.c Mon Jul 07 04:44:36 2003 +0000 @@ -6063,10 +6063,11 @@ char *buf = g_malloc(st.st_size); file = fopen(iconfile, "rb"); if (file) { + md5_state_t *state; char md5[16]; int len = fread(buf, 1, st.st_size, file); fclose(file); - md5_state_t *state = g_malloc(sizeof(md5_state_t)); + state = g_malloc(sizeof(md5_state_t)); md5_init(state); md5_append(state, buf, len); md5_finish(state, md5);