X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc3676.c;h=6559cc46ed35ffd6bc0c427bcdf3ed06cf053117;hp=253c231ce7c2b59287953055b4b0119cb74a77a3;hb=5fbd8a74d24624a118c9b835b136c73b8da076d7;hpb=4e64abbe6c52d61bb01b85c266e33e30b257ba68 diff --git a/lib-mime/rfc3676.c b/lib-mime/rfc3676.c index 253c231..6559cc4 100644 --- a/lib-mime/rfc3676.c +++ b/lib-mime/rfc3676.c @@ -187,7 +187,7 @@ int rfc3676_handler (BODY * a, STATE * s) { } p_realloc(&curline, curline_len + buf_len - buf_off); - strcpy (curline + curline_len - 1, buf + buf_off); + m_strcpy(curline + curline_len - 1, buf_len - buf_off + 1, buf + buf_off); curline_len += buf_len - buf_off; /* if this was a fixed line the paragraph is finished */ @@ -225,7 +225,7 @@ void rfc3676_space_stuff (HEADER* hdr) { if ((in = safe_fopen (hdr->content->filename, "r")) == NULL) return; - out = m_tempfile(tmpf, sizeof(tmpf), NONULL(Tempdir), NULL); + out = m_tempfile(tmpf, sizeof(tmpf), NONULL(mod_core.tmpdir), NULL); if (!out) { m_fclose(&in); return;