# HG changeset patch # User tomkiewicz@o2.pl # Date 1302967766 0 # Node ID 566bed5c02f275be81360ceeb1aa3d7e0099135f # Parent 8f91d3f76acd38f75c6386ec9ef709af9c0ed620 gg: Fix a null pointer dereference. This null pointer dereference caused a crash on Windows. Curiously, however, it resulted in an incorrect timestamp in the message log (no crash) on Linux. Fixes #10268. committer: John Bailey diff -r 8f91d3f76acd -r 566bed5c02f2 libpurple/protocols/gg/gg.c --- a/libpurple/protocols/gg/gg.c Sat Apr 16 15:23:40 2011 +0000 +++ b/libpurple/protocols/gg/gg.c Sat Apr 16 15:29:26 2011 +0000 @@ -1383,8 +1383,8 @@ info->pending_richtext_messages = g_list_remove(info->pending_richtext_messages, entry->data); /* We don't have any more images to download */ if (strstr(text, "event.msg.sender); - serv_got_im(gc, buf, text, PURPLE_MESSAGE_IMAGES, ev->event.msg.time); + gchar *buf = g_strdup_printf("%lu", (unsigned long int)ev->event.image_reply.sender); + serv_got_im(gc, buf, text, PURPLE_MESSAGE_IMAGES, time(NULL)); g_free(buf); purple_debug_info("gg", "ggp_recv_image_handler: richtext message: %s\n", text); g_free(text);