X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc3676.c;h=253c231ce7c2b59287953055b4b0119cb74a77a3;hp=133fe3cfc0d7a24b66e1b6e1cb6863ec79876db5;hb=055f4c1f45ad240f9095e79d3b6957db3ce29975;hpb=7b392ef7b50798f9eb3e7c869e634c5fef0092d1 diff --git a/lib-mime/rfc3676.c b/lib-mime/rfc3676.c index 133fe3c..253c231 100644 --- a/lib-mime/rfc3676.c +++ b/lib-mime/rfc3676.c @@ -165,7 +165,7 @@ int rfc3676_handler (BODY * a, STATE * s) { * which may make the line look like fixed although it wasn't * so keep this in mind for later processing */ fixed = buf_len == 0 || buf[buf_len - 1] != ' ' || - (strcmp(buf + buf_off, "-- ") == 0); + (m_strcmp(buf + buf_off, "-- ") == 0); if (delsp && buf_len >= 1 && buf[buf_len-1] == ' ') buf[--buf_len] = '\0'; @@ -180,7 +180,7 @@ int rfc3676_handler (BODY * a, STATE * s) { } /* signature separator also flushes the previous paragraph */ - if (strcmp(buf + buf_off, "-- ") == 0 && curline && *curline) { + if (m_strcmp(buf + buf_off, "-- ") == 0 && curline && *curline) { print_flowed_line (curline, s, quotelevel); *curline = '\0'; curline_len = 1; @@ -227,7 +227,7 @@ void rfc3676_space_stuff (HEADER* hdr) { out = m_tempfile(tmpf, sizeof(tmpf), NONULL(Tempdir), NULL); if (!out) { - fclose(in); + m_fclose(&in); return; } @@ -237,8 +237,8 @@ void rfc3676_space_stuff (HEADER* hdr) { } fputs (buf, out); } - fclose (in); - fclose (out); + m_fclose(&in); + m_fclose(&out); mutt_set_mtime (hdr->content->filename, tmpf); unlink (hdr->content->filename); m_strreplace(&hdr->content->filename, tmpf);