change deprecated std.fs.MAX_PATH_BYTES to max_path_bytes

It was deprecated before, and became hard compile error.
See https://github.com/ziglang/zig/pull/19847 .

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
Eric Joldasov 2025-02-09 14:15:35 +05:00
parent db96bc698c
commit 66de099de4
No known key found for this signature in database
GPG key ID: 5C9C69060686B588

View file

@ -593,7 +593,7 @@ pub fn main() void {
if (config.binreader and (export_json != null or export_bin != null))
bin_reader.import();
} else {
var buf = [_]u8{0} ** (std.fs.MAX_PATH_BYTES+1);
var buf: [std.fs.max_path_bytes+1]u8 = @splat(0);
const path =
if (std.posix.realpathZ(scan_dir orelse ".", buf[0..buf.len-1])) |p| buf[0..p.len:0]
else |_| (scan_dir orelse ".");