X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mime%2Frfc822parse.c;h=e0cd6b0a421680cbe09ae8fe8cd1b0aafd332256;hp=f6d51066ab93b78cd991cf479bd426860efbe643;hb=8352ddc65f822aaef06df65ee6c32423b73d6890;hpb=dded59764065d6d5051f3188cd691cd1a00c185e diff --git a/lib-mime/rfc822parse.c b/lib-mime/rfc822parse.c index f6d5106..e0cd6b0 100644 --- a/lib-mime/rfc822parse.c +++ b/lib-mime/rfc822parse.c @@ -604,7 +604,7 @@ uncomment_timezone(char *buf, size_t buflen, const char *tz) if (!p) return tz; - m_strcpylen(buf, buflen, tz, p - tz); + m_strncpy(buf, buflen, tz, p - tz); return buf; }