Commit 531de5a6 authored by rswindell's avatar rswindell
Browse files

Fix off-by-one stack corruption introduced in rev 1.35.

parent 7fcbb8ed
......@@ -318,7 +318,7 @@ static BOOL mime_getattachment(char* beg, char* end, char* attachment, size_t at
*term = 0;
if(attachment != NULL && attachment_len > 0) {
strncpy(attachment, getfname(fname), attachment_len);
attachment[attachment_len] = '\0';
attachment[attachment_len - 1] = '\0';
}
return TRUE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment