aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_info_dlg.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-03-13 15:15:26 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-03-13 15:15:26 +0000
commit7b62a629e8f053cd28f3882769c2e55457cc88f8 (patch)
tree2a63a504c6672fed9d3c15392cc5dbe9aa2238f5 /gtk/capture_info_dlg.c
parent47b176f9837829c36b008496e6406448fdc645d2 (diff)
replaced sprintf / snprintf by g_snprintf,
various other string related changes svn path=/trunk/; revision=10373
Diffstat (limited to 'gtk/capture_info_dlg.c')
-rw-r--r--gtk/capture_info_dlg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/capture_info_dlg.c b/gtk/capture_info_dlg.c
index 2ca95cdf80..76a37cdad7 100644
--- a/gtk/capture_info_dlg.c
+++ b/gtk/capture_info_dlg.c
@@ -1,7 +1,7 @@
/* capture_info_dlg.c
* Routines for packet capture info dialog
*
- * $Id: capture_info_dlg.c,v 1.12 2004/02/21 12:58:42 ulfl Exp $
+ * $Id: capture_info_dlg.c,v 1.13 2004/03/13 15:15:22 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -236,7 +236,7 @@ capture_info *cinfo)
/* calculate and display running time */
- snprintf(label_str, sizeof(label_str), "%02ld:%02ld:%02ld",
+ g_snprintf(label_str, sizeof(label_str), "%02ld:%02ld:%02ld",
(long)(cinfo->running_time/3600), (long)((cinfo->running_time%3600)/60),
(long)(cinfo->running_time%60));
gtk_label_set(GTK_LABEL(info->running_time_lb), label_str);
@@ -244,7 +244,7 @@ capture_info *cinfo)
if (cinfo->new_packets) {
for (i = 0; i < CAPTURE_PACKET_COUNTS; i++) {
- snprintf(label_str, sizeof(label_str), "%d",
+ g_snprintf(label_str, sizeof(label_str), "%d",
*info->counts[i].value_ptr);
gtk_label_set(GTK_LABEL(info->counts[i].value_lb), label_str);