aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/camel_srt.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-11-28 03:04:09 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-11-28 03:04:09 +0000
commit9d83eb39fc98f58bb04b4dea1c16046967896c56 (patch)
tree6fa5f2d5aee17661e6de6b3b27edc4a8ef64aa64 /gtk/camel_srt.c
parentc232d0b3857c0bd657b94a5e4604db7d5d16aa08 (diff)
downloadwireshark-9d83eb39fc98f58bb04b4dea1c16046967896c56.tar.gz
wireshark-9d83eb39fc98f58bb04b4dea1c16046967896c56.tar.bz2
wireshark-9d83eb39fc98f58bb04b4dea1c16046967896c56.zip
Fix bug #954 for LDAP SRT stats along with the same problem in all the other
SRT code. svn path=/trunk/; revision=23640
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);