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:
Matt Madia
2013-11-10 18:26:32 -05:00
parent c801b51ce8
commit ade6fe2e93
+1 -1
View File
@@ -578,7 +578,7 @@ void
BAttributedMailAttachment::SaveToDisk(BEntry *entry)
{
BString path = "/tmp/";
char name[B_FILE_NAME_LENGTH + 1] = "";
char name[B_FILE_NAME_LENGTH] = "";
_data->FileName(name);
path << name;