summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-08-27 09:51:21 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-08-27 09:51:21 +0000
commitded841840b473842a49f4f3627f488ca323d05b1 (patch)
tree77ccc600bba3b9f794dbb7a689416d950b16725e /curs_lib.c
parent805fcf41165c20f8b38ad76e8518114f9b976117 (diff)
[patch-0.94.4i.tlr.shell_quote.1] Try to quote file name
arguments and the like for shell commands.
Diffstat (limited to 'curs_lib.c')
-rw-r--r--curs_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/curs_lib.c b/curs_lib.c
index fa7feb19..f324e40a 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -113,7 +113,7 @@ void mutt_clear_error (void)
void mutt_edit_file (const char *editor, const char *data)
{
char cmd[LONG_STRING];
-
+
endwin ();
mutt_expand_fmt (cmd, sizeof (cmd), editor, data);
mutt_system (cmd);
@@ -271,7 +271,7 @@ int mutt_do_pager (const char *banner,
pager_t *info)
{
int rc;
-
+
if (!Pager || strcmp (Pager, "builtin") == 0)
rc = mutt_pager (banner, tempfile, do_color, info, "");
else
@@ -279,7 +279,7 @@ int mutt_do_pager (const char *banner,
char cmd[STRING];
endwin ();
- snprintf (cmd, sizeof (cmd), "%s %s", NONULL(Pager), tempfile);
+ mutt_expand_fmt (cmd, sizeof(cmd), Pager, tempfile);
mutt_system (cmd);
mutt_unlink (tempfile);
rc = 0;