szn

Bug 121 — socket_path.zig — Fixed 128-byte buffer for HOME path with no fallback

121. socket_path.zig — Fixed 128-byte buffer for HOME path with no fallback

File: src/socket_path.zig:33 Severity: MEDIUM Status: ✅ FIXED — increased dir_path buffer from 128 to MAX_PATH; bufPrintZ failure falls back to /tmp.

var dir_path: [128]u8 = undefined;
const dir_z = try std.fmt.bufPrintZ(&dir_path, "{s}/.szn", .{home_str});

If $HOME exceeds ~120 characters, bufPrintZ returns NoSpaceLeft, which propagates as a hard error. Unlike log.zig which falls back to /tmp, this has no fallback — socket creation fails entirely.