diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2008-12-01 07:31:07 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2008-12-01 07:31:07 +0000 |
commit | 3e60203474051cd2d66073c0d0ca0f47227e9d74 (patch) | |
tree | 6237f7f50219320fa1c3c18349f090c6d78e8e97 /gtk/progress_dlg.c | |
parent | 5f707964bd06da42228bbaa0ab40b1d0dc87a6db (diff) |
Fix a few more problems found by checkAPIs.pl
svn path=/trunk/; revision=26887
Diffstat (limited to 'gtk/progress_dlg.c')
-rw-r--r-- | gtk/progress_dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/progress_dlg.c b/gtk/progress_dlg.c index 0325f8b1f9..774a841160 100644 --- a/gtk/progress_dlg.c +++ b/gtk/progress_dlg.c @@ -98,7 +98,7 @@ create_progress_dlg(const gchar *task_title, const gchar *item_title, /* limit the item_title to some reasonable length */ item_title_dup = g_strdup(item_title); if (strlen(item_title_dup) > 110) { - strncpy(&item_title_dup[100], "...", 4); + g_strlcpy(&item_title_dup[100], "...", 4); } dlg->title = g_strdup_printf("%s: %s", task_title, item_title_dup); |