aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-25 13:51:09 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-25 13:53:13 -0500
commitbdf3680be1b39f4a92370817ef0a7e8a9fdaa373 (patch)
treeaf5df2c88b930db263f3b20ce5f4fdae42f0a10c /lib/std/os.zig
parent8a4c2d3b07751507830416e29d6f7d6a023cd483 (diff)
downloadzig-bdf3680be1b39f4a92370817ef0a7e8a9fdaa373.tar.gz
zig-bdf3680be1b39f4a92370817ef0a7e8a9fdaa373.zip
zig fmt
Diffstat (limited to 'lib/std/os.zig')
-rw-r--r--lib/std/os.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index cda65b7ea7..7fcdb7f3ff 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -2753,8 +2753,8 @@ pub fn sched_getaffinity(pid: pid_t) SchedGetAffinityError!cpu_set_t {
/// Used to convert a slice to a null terminated slice on the stack.
/// TODO https://github.com/ziglang/zig/issues/287
-pub fn toPosixPath(file_path: []const u8) ![PATH_MAX-1:0]u8 {
- var path_with_null: [PATH_MAX-1:0]u8 = undefined;
+pub fn toPosixPath(file_path: []const u8) ![PATH_MAX - 1:0]u8 {
+ var path_with_null: [PATH_MAX - 1:0]u8 = undefined;
// >= rather than > to make room for the null byte
if (file_path.len >= PATH_MAX) return error.NameTooLong;
mem.copy(u8, &path_with_null, file_path);