projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
revamp lib.[hc] functions into lib-lib/file.[hc].
[apps/madmutt.git]
/
recvattach.c
diff --git
a/recvattach.c
b/recvattach.c
index
e123884
..
885c528
100644
(file)
--- a/
recvattach.c
+++ b/
recvattach.c
@@
-16,6
+16,7
@@
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
#include <lib-lib/ascii.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
#include <lib-lib/ascii.h>
+#include <lib-lib/file.h>
#include "mutt.h"
#include "enter.h"
#include "mutt.h"
#include "enter.h"
@@
-408,8
+409,8
@@
static int mutt_query_save_attachment (FILE * fp, BODY * body, HEADER * hdr,
if (body->filename) {
if (directory && *directory)
if (body->filename) {
if (directory && *directory)
- mutt_concat_path
(buf, *directory, mutt_basename (body->filename)
,
-
sizeof (buf
));
+ mutt_concat_path
(buf, sizeof(buf), *directory
,
+
mutt_basename(body->filename
));
else
strfcpy (buf, body->filename, sizeof (buf));
}
else
strfcpy (buf, body->filename, sizeof (buf));
}
@@
-994,7
+995,7
@@
void mutt_view_attachments (HEADER * hdr)
attach_collapse (cur, 0, 1, 0);
mutt_update_attach_index (cur, &idx, &idxlen, &idxmax, menu);
attach_collapse (cur, 0, 1, 0);
mutt_update_attach_index (cur, &idx, &idxlen, &idxmax, menu);
-
FOREVER
{
+
for (;;)
{
if (op == OP_NULL)
op = mutt_menuLoop (menu);
switch (op) {
if (op == OP_NULL)
op = mutt_menuLoop (menu);
switch (op) {