aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/ncp_stat.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/ncp_stat.c
parentc232d0b3857c0bd657b94a5e4604db7d5d16aa08 (diff)
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/ncp_stat.c')
-rw-r--r--gtk/ncp_stat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/ncp_stat.c b/gtk/ncp_stat.c
index fb34fc09d8..f3eed24eca 100644
--- a/gtk/ncp_stat.c
+++ b/gtk/ncp_stat.c
@@ -501,7 +501,7 @@ gtk_ncpstat_init(const char *optarg, void *userdata _U_)
ncpstat_t *ss;
const char *filter=NULL;
GtkWidget *label;
- char filter_string[256];
+ char *filter_string;
GString *error_string;
GtkWidget *temp_page;
GtkWidget *main_nb;
@@ -529,8 +529,10 @@ gtk_ncpstat_init(const char *optarg, void *userdata _U_)
label=gtk_label_new("NCP Service Response Time Statistics");
gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0);
- g_snprintf(filter_string,255,"Filter:%s",filter?filter:"");
+ filter_string = g_strdup_printf("Filter: %s",filter ? filter : "");
label=gtk_label_new(filter_string);
+ g_free(filter_string);
+ gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
main_nb = gtk_notebook_new();