projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove cruft from the repo.
[apps/madmutt.git]
/
editmsg.c
diff --git
a/editmsg.c
b/editmsg.c
index
a11a5e4
..
529838c
100644
(file)
--- a/
editmsg.c
+++ b/
editmsg.c
@@
-95,7
+95,7
@@
static int edit_one_message (CONTEXT * ctx, HEADER * cur)
* remove it, the message will grow by one line each time the user edits
* the message.
*/
* remove it, the message will grow by one line each time the user edits
* the message.
*/
- if (s
b.st_size != 0 && truncate (tmp, sb.st_size - 1
) == -1) {
+ if (s
ize != 0 && truncate (tmp, --size
) == -1) {
mutt_error (_("could not truncate temporary mail folder: %s"),
strerror (errno));
goto bail;
mutt_error (_("could not truncate temporary mail folder: %s"),
strerror (errno));
goto bail;