From f8e92c57a0116444b7f8701c5d1bda65bb996b59 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 13 Jul 2018 16:01:09 +0100 Subject: [PATCH] fix typo --- copy.c | 4 ++-- mailbox.h | 8 ++++---- maildir/mh.c | 4 ++-- mx.c | 2 +- sendlib.c | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/copy.c b/copy.c index fca860c04..d0c28a0ad 100644 --- a/copy.c +++ b/copy.c @@ -840,8 +840,8 @@ static int append_message(struct Context *dest, FILE *fpin, struct Context *src, r = -1; #ifdef USE_NOTMUCH - if (msg->commited_path && dest->magic == MUTT_MAILDIR && src->magic == MUTT_NOTMUCH) - nm_update_filename(src, NULL, msg->commited_path, hdr); + if (msg->committed_path && dest->magic == MUTT_MAILDIR && src->magic == MUTT_NOTMUCH) + nm_update_filename(src, NULL, msg->committed_path, hdr); #endif mx_msg_close(dest, &msg); diff --git a/mailbox.h b/mailbox.h index 2b765a1bc..a9225541e 100644 --- a/mailbox.h +++ b/mailbox.h @@ -62,10 +62,10 @@ enum MxCheckReturns */ struct Message { - FILE *fp; /**< pointer to the message data */ - char *path; /**< path to temp file */ - char *commited_path; /**< the final path generated by mx_msg_commit() */ - bool write; /**< nonzero if message is open for writing */ + FILE *fp; /**< pointer to the message data */ + char *path; /**< path to temp file */ + char *committed_path; /**< the final path generated by mx_msg_commit() */ + bool write; /**< nonzero if message is open for writing */ struct { bool read : 1; diff --git a/maildir/mh.c b/maildir/mh.c index 82ac51b8c..558ff38d0 100644 --- a/maildir/mh.c +++ b/maildir/mh.c @@ -1874,7 +1874,7 @@ static int md_commit_message(struct Context *ctx, struct Message *msg, struct He #endif if (hdr) mutt_str_replace(&hdr->path, path); - mutt_str_replace(&msg->commited_path, full); + mutt_str_replace(&msg->committed_path, full); FREE(&msg->path); return 0; @@ -1966,7 +1966,7 @@ static int mh_commit_msg(struct Context *ctx, struct Message *msg, { if (hdr) mutt_str_replace(&hdr->path, tmp); - mutt_str_replace(&msg->commited_path, path); + mutt_str_replace(&msg->committed_path, path); FREE(&msg->path); break; } diff --git a/mx.c b/mx.c index 61c13c8e0..2d80629e3 100644 --- a/mx.c +++ b/mx.c @@ -1345,7 +1345,7 @@ int mx_msg_close(struct Context *ctx, struct Message **msg) FREE(&(*msg)->path); } - FREE(&(*msg)->commited_path); + FREE(&(*msg)->committed_path); FREE(msg); return r; } diff --git a/sendlib.c b/sendlib.c index b312b6a01..2912fce6a 100644 --- a/sendlib.c +++ b/sendlib.c @@ -3289,7 +3289,7 @@ int mutt_write_fcc(const char *path, struct Header *hdr, const char *msgid, if (mx_msg_commit(&f, msg) != 0) rc = -1; else if (finalpath) - *finalpath = mutt_str_strdup(msg->commited_path); + *finalpath = mutt_str_strdup(msg->committed_path); mx_msg_close(&f, &msg); mx_mbox_close(&f, NULL); -- 2.50.1