/pidgin/main: be5378bae40e: CID 731947 - Deal with the unlikely ...
Daniel Atallah
datallah at pidgin.im
Wed Feb 6 09:26:49 EST 2013
Changeset: be5378bae40edc5529eac59c72be67024257c02e
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2013-02-06 09:26 -0500
Branch: release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/be5378bae40e
Description:
CID 731947 - Deal with the unlikely scenario that a locale would have a month+year value longer than 29 bytes.
diffstat:
pidgin/gtklog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/pidgin/gtklog.c b/pidgin/gtklog.c
--- a/pidgin/gtklog.c
+++ b/pidgin/gtklog.c
@@ -510,7 +510,7 @@ static void populate_log_tree(PidginLogV
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 */
More information about the Commits
mailing list