Fix size argument is greater than the length of the destination buffer
Signed-off-by: Matt Madia <[email protected]>
This commit is contained in:
committed by
Matt Madia
parent
c347a4d4d4
commit
c801b51ce8
@@ -578,7 +578,7 @@ void
|
||||
BAttributedMailAttachment::SaveToDisk(BEntry *entry)
|
||||
{
|
||||
BString path = "/tmp/";
|
||||
char name[255] = "";
|
||||
char name[B_FILE_NAME_LENGTH + 1] = "";
|
||||
_data->FileName(name);
|
||||
path << name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user