--- a/libpurple/log.c Mon Jan 27 17:34:21 2014 +0530 +++ b/libpurple/log.c Wed Jan 29 00:28:08 2014 +0530 @@ -778,7 +778,7 @@ { gboolean show_date; char *date; - struct tm tm; + struct tm *tm; show_date = (log->type == PURPLE_LOG_SYSTEM) || (time(NULL) > when + 20*60); @@ -788,11 +788,11 @@ if (date != NULL) return date; - tm = *(localtime(&when)); + tm = localtime(&when); if (show_date) - return g_strdup(purple_date_format_long(&tm)); + return g_strdup(purple_date_format_long(tm)); else - return g_strdup(purple_time_format(&tm)); + return g_strdup(purple_time_format(tm)); } /* NOTE: This can return msg (which you may or may not want to g_free())