Ticket #9881: 0011-Fix-size-argument-is-greater-than-the-length-of-the-.patch

File 0011-Fix-size-argument-is-greater-than-the-length-of-the-.patch, 753 bytes (added by mt, 11 years ago)

Patch

  • src/kits/mail/MailAttachment.cpp

    From fa39e0232e6c344b1c3fc7981c8d046969dbc9ff Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Wed, 17 Jul 2013 20:18:42 +0900
    Subject: [PATCH] Fix size argument is greater than the length of the destination buffer
    
    ---
     src/kits/mail/MailAttachment.cpp |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/kits/mail/MailAttachment.cpp b/src/kits/mail/MailAttachment.cpp
    index be734bf..9c6a5d5 100644
    a b void  
    578578BAttributedMailAttachment::SaveToDisk(BEntry *entry)
    579579{
    580580    BString path = "/tmp/";
    581     char name[255] = "";
     581    char name[B_FILE_NAME_LENGTH + 1] = "";
    582582    _data->FileName(name);
    583583    path << name;
    584584