From 09e177badcb0d6b79abd203065adc2904d30355a Mon Sep 17 00:00:00 2001 From: Armin Wolfermann Date: Sun, 5 Jan 2003 21:59:59 +0000 Subject: Fix a number of invocations of mutt_yesorno(): Always explicitly use the M_YES and M_NO constants. Fixes a couple of cases in which C-g would be mis-interpreted. --- attach.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'attach.c') diff --git a/attach.c b/attach.c index 628eb9a4..7a3c3bca 100644 --- a/attach.c +++ b/attach.c @@ -112,7 +112,7 @@ int mutt_compose_attachment (BODY *a) a->filename, newfile)); if (safe_symlink (a->filename, newfile) == -1) { - if (!mutt_yesorno (_("Can't match nametemplate, continue?"), 1)) + if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) != M_YES) goto bailout; } unlink_newfile = 1; @@ -239,7 +239,7 @@ int mutt_edit_attachment (BODY *a) a->filename, newfile)); if (safe_symlink (a->filename, newfile) == -1) { - if (!mutt_yesorno (_("Can't match nametemplate, continue?"), 1)) + if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) != M_YES) goto bailout; } unlink_newfile = 1; @@ -468,7 +468,7 @@ int mutt_view_attachment (FILE *fp, BODY *a, int flag, HEADER *hdr, /* send case: the file is already there */ if (safe_symlink (a->filename, tempfile) == -1) { - if (mutt_yesorno (_("Can't match nametemplate, continue?"), 1) == M_YES) + if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) == M_YES) strfcpy (tempfile, a->filename, sizeof (tempfile)); else goto return_error; @@ -958,7 +958,7 @@ int mutt_print_attachment (FILE *fp, BODY *a) { if (safe_symlink(a->filename, newfile) == -1) { - if (mutt_yesorno (_("Can't match nametemplate, continue?"), 1) != M_YES) + if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES) != M_YES) { rfc1524_free_entry (&entry); return 0; -- cgit v1.2.3