Fix size argument is greater than the length of the destination buffer

Signed-off-by: Matt Madia <[email protected]>
This commit is contained in:
Murai Takashi
2013-11-10 18:25:58 -05:00
committed by Matt Madia
parent c347a4d4d4
commit c801b51ce8
+1 -1
View File
@@ -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;