szn

Bug 242 — Heap allocation in getCwd PTY path resolution

242. Heap allocation in getCwd PTY path resolution

File: src/server/pty.zig:193–195 Severity: MEDIUM (performance) Status: ✅ FIXED

getCwd allocates a heap string using allocator.dupeZ(u8, proc_path) before calling readlink.

Impact: Unnecessary heap allocation on PTY path inspection.

Fix: Use std.fmt.bufPrintZ to write into a stack buffer.