Ticket #12941: 0031-vfs.cpp-fix-clang-build.patch

File 0031-vfs.cpp-fix-clang-build.patch, 748 bytes (added by mt, 4 years ago)
  • src/system/boot/loader/vfs.cpp

    From b256e9f08e83347725bcb26790b03377b5d2191c Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Mon, 5 Sep 2016 05:04:44 +0900
    Subject: [PATCH 31/31] vfs.cpp: fix clang build
    
    ---
     src/system/boot/loader/vfs.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/system/boot/loader/vfs.cpp b/src/system/boot/loader/vfs.cpp
    index 8408970..a136b6c 100644
    a b open_from(Directory *directory, const char *name, int mode, mode_t permissions)  
    10441044            if (lastSlash[1] == '\0')
    10451045                return B_ENTRY_NOT_FOUND;
    10461046
    1047             lastSlash = '\0';
     1047            *lastSlash = '\0';
    10481048            name = lastSlash + 1;
    10491049
    10501050            // resolve the directory