Adjust array length.
As per Axel: The "+1" is not needed; B_FILE_NAME_LENGTH already includes the terminating null byte.
This commit is contained in:
@@ -578,7 +578,7 @@ void
|
|||||||
BAttributedMailAttachment::SaveToDisk(BEntry *entry)
|
BAttributedMailAttachment::SaveToDisk(BEntry *entry)
|
||||||
{
|
{
|
||||||
BString path = "/tmp/";
|
BString path = "/tmp/";
|
||||||
char name[B_FILE_NAME_LENGTH + 1] = "";
|
char name[B_FILE_NAME_LENGTH] = "";
|
||||||
_data->FileName(name);
|
_data->FileName(name);
|
||||||
path << name;
|
path << name;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user