We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01d5cf commit 4bedc18Copy full SHA for 4bedc18
src/native/libs/System.Native/pal_io.c
@@ -1838,6 +1838,7 @@ uint32_t SystemNative_GetFileSystemType(intptr_t fd)
1838
// Haiku names its own BFS filesystem "bfs", but on Linux and some other UNIXes
1839
// it is called "befs" to avoid confusion with Boot File System.
1840
strncpy(info.fsh_name, "befs", sizeof(info.fsh_name) - 1);
1841
+ info.fsh_name[sizeof(info.fsh_name) - 1] = '\0';
1842
}
1843
1844
return MapFileSystemNameToEnum(info.fsh_name);
0 commit comments