*/
int mutt_copy_header(FILE *in, struct Header *h, FILE *out, int flags, const char *prefix)
{
- char buffer[SHORT_STRING];
if (h->env)
flags |= (h->env->irt_changed ? CH_UPDATE_IRT : 0) |
if (flags & CH_TXTPLAIN)
{
char chsbuf[SHORT_STRING];
+ char buffer[SHORT_STRING];
fputs("MIME-Version: 1.0\n", out);
fputs("Content-Transfer-Encoding: 8bit\n", out);
fputs("Content-Type: text/plain; charset=", out);
static int count_delete_lines(FILE *fp, struct Body *b, LOFF_T *length, size_t datelen)
{
int dellines = 0;
- int ch;
if (b->deleted)
{
fseeko(fp, b->offset, SEEK_SET);
for (long l = b->length; l; l--)
{
- ch = getc(fp);
+ const int ch = getc(fp);
if (ch == EOF)
break;
if (ch == '\n')
char cbuf[STRING];
char c2buf[STRING];
char *p = NULL;
- size_t l, linelen, buflen, cbuflen, c2buflen, plen;
+ size_t linelen, buflen, plen;
linelen = mutt_str_strlen(*h);
plen = linelen;
struct Address *tmp = a->next;
a->next = NULL;
*buf = *cbuf = *c2buf = '\0';
- l = mutt_addr_write(buf, sizeof(buf), a, false);
+ const size_t l = mutt_addr_write(buf, sizeof(buf), a, false);
a->next = tmp;
if (count && linelen + l > 74)
strcpy(c2buf, ",");
}
- cbuflen = mutt_str_strlen(cbuf);
- c2buflen = mutt_str_strlen(c2buf);
+ const size_t cbuflen = mutt_str_strlen(cbuf);
+ const size_t c2buflen = mutt_str_strlen(c2buf);
buflen += l + cbuflen + c2buflen;
mutt_mem_realloc(h, buflen);
p = *h;