From 226d861c9ebb7f09f95665d07d9ab5c6b7ed7d6f Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 3 Oct 2024 15:08:45 +0200 Subject: libc: small changes --- userland/libc/stdlib/realpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'userland/libc/stdlib/realpath.c') diff --git a/userland/libc/stdlib/realpath.c b/userland/libc/stdlib/realpath.c index d9e2387..7ce0f6c 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); + sb_init(&string, 512); struct sv path = C_TO_SV(cwd); -- cgit v1.2.3