path: root/file.c
diff options
authorGuy Harris <guy@alum.mit.edu>2012-07-21 00:12:21 +0000
committerGuy Harris <guy@alum.mit.edu>2012-07-21 00:12:21 +0000
commitc0506eda4ae90a168f15afc91f6900faaa3e198d (patch)
treebc19850f48deb2221075244d9205421627a8d0a5 /file.c
parent73b0691fd88a19cda9c443ac0309c34b94c2e095 (diff)
simple_message_box() does not expect Pango markup, so escaping is
not necessary, and just messes up the display. Fixes bug 7489. #BACKPORT svn path=/trunk/; revision=43875
Diffstat (limited to 'file.c')
1 files changed, 1 insertions, 5 deletions
diff --git a/file.c b/file.c
index 67e7da2d91..369037f70b 100644
--- a/file.c
+++ b/file.c
@@ -1525,14 +1525,10 @@ cf_filter_packets(capture_file *cf, gchar *dftext, gboolean force)
dftext = g_strdup(dftext);
if (!dfilter_compile(dftext, &dfcode)) {
/* The attempt failed; report an error. */
- gchar *safe_dftext = simple_dialog_format_message(dftext);
- gchar *safe_dfilter_error_msg = simple_dialog_format_message(dfilter_error_msg);
simple_message_box(ESD_TYPE_ERROR, NULL,
"See the help for a description of the display filter syntax.",
"\"%s\" isn't a valid display filter: %s",
- safe_dftext, safe_dfilter_error_msg);
- g_free(safe_dfilter_error_msg);
- g_free(safe_dftext);
+ dftext, dfilter_error_msg);
return CF_ERROR;