summaryrefslogtreecommitdiff
path: root/userland/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/stdlib')
-rw-r--r--userland/libc/stdlib/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userland/libc/stdlib/realpath.c b/userland/libc/stdlib/realpath.c
index 7ce0f6c..86ac4ed 100644
--- a/userland/libc/stdlib/realpath.c
+++ b/userland/libc/stdlib/realpath.c
@@ -16,7 +16,7 @@ char *realpath(const char *filename, char *resolvedname) {
strcat(cwd, filename); // FIXME: bounds check
struct sb string;
- sb_init(&string, 512);
+ sb_init_capacity(&string, 256);
struct sv path = C_TO_SV(cwd);