diff options
Diffstat (limited to 'src/lsof.cpp')
-rw-r--r-- | src/lsof.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lsof.cpp b/src/lsof.cpp index 100394a..aaf2fbd 100644 --- a/src/lsof.cpp +++ b/src/lsof.cpp @@ -122,10 +122,12 @@ namespace void display_regex_error(const Glib::RegexError& error) { - const char * msg = _("<b>Error</b>\n" - "'%s' is not a valid Perl regular expression.\n" - "%s"); + char * msg = g_strdup_printf ("<b>%s</b>\n%s\n%s", + _("Error"), + _("'%s' is not a valid Perl regular expression."), + "%s"); std::string message = make_string(g_strdup_printf(msg, this->pattern().c_str(), error.what().c_str())); + g_free(msg); Gtk::MessageDialog dialog(message, true, // use markup |