diff options
author | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-01 07:31:07 +0000 |
---|---|---|
committer | sfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-12-01 07:31:07 +0000 |
commit | 53ee384a66287468e29ad1f7da9ecc36d8db2c7a (patch) | |
tree | 6237f7f50219320fa1c3c18349f090c6d78e8e97 /gtk | |
parent | 68bc03351cdeca964ff22e96cbe0d3f824814f6b (diff) |
Fix a few more problems found by checkAPIs.pl
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26887 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-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), |