aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/camel_srt.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-11-28 03:04:09 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2007-11-28 03:04:09 +0000
commitd38889d5e6b22caa1bedcab655072bb5310a23ba (patch)
tree6fa5f2d5aee17661e6de6b3b27edc4a8ef64aa64 /gtk/camel_srt.c
parent4dfd63079d6f93095e78537851b972dab49aba4c (diff)
Fix bug #954 for LDAP SRT stats along with the same problem in all the other
SRT code. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23640 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/camel_srt.c')
-rw-r--r--gtk/camel_srt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/camel_srt.c b/gtk/camel_srt.c
index 23aa8538e5..4b1d5f4429 100644
--- a/gtk/camel_srt.c
+++ b/gtk/camel_srt.c
@@ -150,7 +150,7 @@ static void gtk_camelsrt_init(const char *optarg, void *userdata _U_)
GtkWidget *cmd_label;
GtkWidget *main_label;
GtkWidget *filter_label;
- char filter_string[256];
+ char *filter_string;
GString *error_string;
GtkWidget *vbox;
GtkWidget *bbox;
@@ -177,8 +177,10 @@ static void gtk_camelsrt_init(const char *optarg, void *userdata _U_)
gtk_box_pack_start(GTK_BOX(vbox), main_label, FALSE, FALSE, 0);
gtk_widget_show(main_label);
- g_snprintf(filter_string,255,"Filter:%s",filter?filter:"");
+ filter_string = g_strdup_printf("Filter: %s",filter ? filter : "");
filter_label=gtk_label_new(filter_string);
+ g_free(filter_string);
+ gtk_label_set_line_wrap(GTK_LABEL(filter_label), TRUE);
gtk_box_pack_start(GTK_BOX(vbox), filter_label, FALSE, FALSE, 0);
gtk_widget_show(filter_label);