aboutsummaryrefslogtreecommitdiff
path: root/std/os
diff options
context:
space:
mode:
authorJosh Wolfe <thejoshwolfe@gmail.com>2017-12-22 00:49:17 -0700
committerJosh Wolfe <thejoshwolfe@gmail.com>2017-12-22 00:52:01 -0700
commit0e7fb69bea4d2b50ab352b71de87a563b57a645a (patch)
tree4d0222c13dbfff5851af1875778401bb860dc4b6 /std/os
parentea805c5fe7a8e24597fcd59f064efc2a7dca3859 (diff)
downloadzig-0e7fb69bea4d2b50ab352b71de87a563b57a645a.tar.gz
zig-0e7fb69bea4d2b50ab352b71de87a563b57a645a.zip
bufPrint returns an error
Diffstat (limited to 'std/os')
-rw-r--r--std/os/path.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os/path.zig b/std/os/path.zig
index a42ebb3433..59e9a53027 100644
--- a/std/os/path.zig
+++ b/std/os/path.zig
@@ -1012,7 +1012,7 @@ pub fn real(allocator: &Allocator, pathname: []const u8) -> %[]u8 {
defer os.close(fd);
var buf: ["/proc/self/fd/-2147483648".len]u8 = undefined;
- const proc_path = fmt.bufPrint(buf[0..], "/proc/self/fd/{}", fd);
+ const proc_path = %%fmt.bufPrint(buf[0..], "/proc/self/fd/{}", fd);
return os.readLink(allocator, proc_path);
},