aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/progress_dlg.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2008-12-01 07:31:07 +0000
committerStephen Fisher <steve@stephen-fisher.com>2008-12-01 07:31:07 +0000
commit3e60203474051cd2d66073c0d0ca0f47227e9d74 (patch)
tree6237f7f50219320fa1c3c18349f090c6d78e8e97 /gtk/progress_dlg.c
parent5f707964bd06da42228bbaa0ab40b1d0dc87a6db (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.c2
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);