/pidgin/main: bd4fb691871f: Fix compile error from 0d4e3eb3b383

Mark Doliner mark at kingant.net
Wed Feb 20 03:46:11 EST 2013


Changeset: bd4fb691871f6691c23f4c42c030d320500d1ea0
Author:	 Mark Doliner <mark at kingant.net>
Date:	 2013-02-20 00:45 -0800
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/bd4fb691871f

Description:

Fix compile error from 0d4e3eb3b383
g_strncpy doesn't so much exist.  I think g_strlcpy was intended.

diffstat:

 finch/gntlog.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/finch/gntlog.c b/finch/gntlog.c
--- a/finch/gntlog.c
+++ b/finch/gntlog.c
@@ -248,7 +248,7 @@ static void populate_log_tree(FinchLogVi
 									NULL);
 			gnt_tree_set_expanded(GNT_TREE(lv->tree), month, FALSE);
 
-			g_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