From: Richard Russon Date: Sat, 23 Jun 2018 00:32:25 +0000 (+0100) Subject: update_content_info X-Git-Tag: neomutt-20180716~23^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fad02160f5d65f2f1f6e8dd708894ee051adf8b;p=neomutt update_content_info --- diff --git a/sendlib.c b/sendlib.c index afa5f037b..afbd48c56 100644 --- a/sendlib.c +++ b/sendlib.c @@ -560,7 +560,7 @@ struct ContentState }; static void update_content_info(struct Content *info, struct ContentState *s, - char *d, size_t dlen) + char *buf, size_t buflen) { bool from = s->from; int whitespace = s->whitespace; @@ -568,7 +568,7 @@ static void update_content_info(struct Content *info, struct ContentState *s, int linelen = s->linelen; bool was_cr = s->was_cr; - if (!d) /* This signals EOF */ + if (!buf) /* This signals EOF */ { if (was_cr) info->binary = true; @@ -578,9 +578,9 @@ static void update_content_info(struct Content *info, struct ContentState *s, return; } - for (; dlen; d++, dlen--) + for (; buflen; buf++, buflen--) { - char ch = *d; + char ch = *buf; if (was_cr) {