Skip to content

Commit 4bedc18

Browse files
trungnt2910Copilot
andauthored
Update src/native/libs/System.Native/pal_io.c
Co-authored-by: Copilot <[email protected]>
1 parent d01d5cf commit 4bedc18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/native/libs/System.Native/pal_io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,7 @@ uint32_t SystemNative_GetFileSystemType(intptr_t fd)
18381838
// Haiku names its own BFS filesystem "bfs", but on Linux and some other UNIXes
18391839
// it is called "befs" to avoid confusion with Boot File System.
18401840
strncpy(info.fsh_name, "befs", sizeof(info.fsh_name) - 1);
1841+
info.fsh_name[sizeof(info.fsh_name) - 1] = '\0';
18411842
}
18421843

18431844
return MapFileSystemNameToEnum(info.fsh_name);

0 commit comments

Comments
 (0)