commit ea90ec4d8861427b3bca8b230ec04920a1242443 (tree)
parent bc8e1a74c514e487842c03ab32d7f6e49f42c529
Author: Linus Groh <mail@linusgroh.de>
Date: Thu, 24 Jul 2025 00:24:55 +0100
std.c: Fix dirent.name size for serenity
The null terminator is added to the buffer size.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/c.zig b/lib/std/c.zig
@@ -7147,7 +7147,7 @@ pub const dirent = switch (native_os) {
off: off_t,
reclen: c_ushort,
type: u8,
- name: [256:0]u8,
+ name: [255:0]u8,
},
else => void,
};