---
protos.h | 2 +-
sendlib.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/protos.h b/protos.h
index 56b08cb9..4e8337da 100644
--- a/protos.h
+++ b/protos.h
@@ -415,7 +415,7 @@ int mutt_which_case(const char *);
int mutt_write_fcc(const char *path, SEND_CONTEXT *sctx, const char *msgid,
int, const char *);
int mutt_write_mime_body(BODY *, FILE *);
int mutt_write_mime_header(BODY *, FILE *);
-int mutt_write_one_header(FILE *fp, const char *tag, const char *value, const
char *pfx, int wraplen, int flags);
+int mutt_write_one_header(FILE *fp, const char *tag, char *value, const char
*pfx, int wraplen, int flags);
int mutt_write_rfc822_header(FILE *, ENVELOPE *, BODY *, char *,
mutt_write_header_mode, int, int);
void mutt_write_references(LIST *, FILE *, int);
int mutt_yesorno(const char *, int);
diff --git a/sendlib.c b/sendlib.c
index 3c3beb64..3c8b0c7c 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -2173,10 +2173,10 @@ static int write_one_header(FILE *fp, int pfxw, int
max, int wraplen,
/* split several headers into individual ones and call write_one_header
* for each one */
-int mutt_write_one_header(FILE *fp, const char *tag, const char *value,
+int mutt_write_one_header(FILE *fp, const char *tag, char *value,
const char *pfx, int wraplen, int flags)
{
- char *p = (char *)value, *last, *line;
+ char *p = value, *last, *line;
int max = 0, w, rc = -1;
int pfxw = mutt_strwidth(pfx);
char *v = safe_strdup(value);
--
2.51.0