Commit 3b8c7cf6 authored by rswindell's avatar rswindell
Browse files

Additional fix to mime_getattachment() - terminate the filename at the

first white-space character encountered.
parent 61860388
......@@ -313,6 +313,9 @@ static BOOL mime_getattachment(char* beg, char* end, char* attachment)
term = filename + sizeof(fname) - 1;
memcpy(fname, filename, term - filename);
fname[term - filename] = 0;
term = fname;
FIND_WHITESPACE(term);
*term = 0;
strcpy(attachment, getfname(fname));
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