From: Mark D. <the...@us...> - 2003-07-07 04:44:38
|
Update of /cvsroot/gaim/gaim/src/protocols/oscar In directory sc8-pr-cvs1:/tmp/cvs-serv20589/src/protocols/oscar Modified Files: oscar.c Log Message: Should fix the ctrl+a/ctrl+home/ctrl+end crashes. Index: oscar.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/oscar/oscar.c,v retrieving revision 1.407 retrieving revision 1.408 diff -u -d -r1.407 -r1.408 --- oscar.c 7 Jul 2003 02:59:13 -0000 1.407 +++ oscar.c 7 Jul 2003 04:44:36 -0000 1.408 @@ -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); |