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 | |
parent | 5f707964bd06da42228bbaa0ab40b1d0dc87a6db (diff) |
Fix a few more problems found by checkAPIs.pl
svn path=/trunk/; revision=26887
-rw-r--r-- | gtk/capture_dlg.c | 2 | ||||
-rw-r--r-- | gtk/progress_dlg.c | 2 | ||||
-rw-r--r-- | gtk/tcp_graph.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 5704469023..f527a42967 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -1422,7 +1422,7 @@ capture_remote_combo_add_recent(gchar *s) prefs_clear_string_list(vals); - g_hash_table_insert (remote_host_list, strdup(rh->remote_host), rh); + g_hash_table_insert (remote_host_list, g_strdup(rh->remote_host), rh); return TRUE; } 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); diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c index 2a3e67a38e..80667dea0c 100644 --- a/gtk/tcp_graph.c +++ b/gtk/tcp_graph.c @@ -772,7 +772,7 @@ static void create_drawing_area (struct graph *g) * and we don't have the GC's at all. so we just postpone installation * of configure handler until we're ready to deal with it. * - * !!! NEMĚLO BY TO BÝT NA KONCI graph_init_sequence()? !!! + * !!! NEMLLO BY TO BYT NA KONCI graph_init_sequence()? !!! * */ g_signal_connect(g->drawing_area,"configure_event", G_CALLBACK(configure_event), |