X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..659db44480d138d8f398f9c357ff7e84bf0ac800:/commands.c diff --git a/commands.c b/commands.c index 264880c..45b9db7 100644 --- a/commands.c +++ b/commands.c @@ -1,6 +1,6 @@ /* * Copyright (C) 1996-2000 Michael R. Elkins - * Copyright (C) 2000 Thomas Roessler + * Copyright (C) 2000-4,2006 Thomas Roessler * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -147,7 +147,7 @@ int mutt_display_message (HEADER *cur) res = mutt_copy_message (fpout, Context, cur, cmflags, (option (OPTWEED) ? (CH_WEED | CH_REORDER) : 0) | CH_DECODE | CH_FROM); - if ((safe_fclose (&fpout) != 0 && errno != EPIPE) || res == -1) + if ((safe_fclose (&fpout) != 0 && errno != EPIPE) || res < 0) { mutt_error (_("Could not copy message")); if (fpfilterout != NULL) @@ -758,7 +758,7 @@ int mutt_save_message (HEADER *h, int delete, } } - mutt_pretty_mailbox (buf); + mutt_pretty_mailbox (buf, sizeof (buf)); if (mutt_enter_fname (prompt, buf, sizeof (buf), redraw, 0) == -1) return (-1);