summaryrefslogtreecommitdiffstats
path: root/headers.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2008-07-02 11:19:14 +0200
committerRocco Rutte <pdmef@gmx.net>2008-07-02 11:19:14 +0200
commitcef55358ef7d80b84ac3706381d1ae9240c82c27 (patch)
tree44c66ed9158542967a7323802a95b532721fc72a /headers.c
parent80643307a082b5a3b7408040ce7d58d9f483a7bb (diff)
Use realpath() in mutt_pretty_mailbox() for paths that may need it.
This requires to add the buffer size as parameter since the result may be longer than the original but still fit in the buffer. Closes #2948.
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/headers.c b/headers.c
index cace3a9c..6ac21d8a 100644
--- a/headers.c
+++ b/headers.c
@@ -143,7 +143,7 @@ void mutt_edit_headers (const char *editor,
if (*p)
{
strfcpy (fcc, p, fcclen);
- mutt_pretty_mailbox (fcc);
+ mutt_pretty_mailbox (fcc, fcclen);
}
keep = 0;
}
@@ -173,7 +173,7 @@ void mutt_edit_headers (const char *editor,
}
else
{
- mutt_pretty_mailbox (path);
+ mutt_pretty_mailbox (path, sizeof (path));
mutt_error (_("%s: unable to attach file"), path);
}
}