diff -r 29cc844aed80 -r be5378bae40e pidgin/gtklog.c --- a/pidgin/gtklog.c Wed Sep 12 14:09:08 2012 +0200 +++ b/pidgin/gtklog.c Wed Feb 06 09:26:04 2013 -0500 @@ -510,7 +510,7 @@ gtk_tree_store_append(lv->treestore, &toplevel, NULL); gtk_tree_store_set(lv->treestore, &toplevel, 0, month, 1, NULL, -1); - strncpy(prev_top_month, month, sizeof(prev_top_month)); + g_strlcpy(prev_top_month, month, sizeof(prev_top_month)); } /* sub */