From ea90ec4d8861427b3bca8b230ec04920a1242443 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 24 Jul 2025 00:24:55 +0100 Subject: [PATCH] std.c: Fix dirent.name size for serenity The null terminator is added to the buffer size. --- lib/std/c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 74bc76d67f..e2f55dd6fb 100644 --- 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, };