From 54869df7835565d0983096f65326cdd2d5f4f3d8 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 28 Nov 2024 00:06:09 +0100 Subject: changes --- userland/minibox/utilities/sh/sh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'userland/minibox/utilities/sh') diff --git a/userland/minibox/utilities/sh/sh.c b/userland/minibox/utilities/sh/sh.c index f907cc2..e129044 100644 --- a/userland/minibox/utilities/sh/sh.c +++ b/userland/minibox/utilities/sh/sh.c @@ -162,7 +162,7 @@ int sh_main(int argc, char **argv) { int fd = open(argv[1], O_RDONLY, 0); char buffer[8192]; struct sb file; - sb_init(&file, 256); + sb_init(&file); for (;;) { int rc = read(fd, buffer, 8192); @@ -186,7 +186,7 @@ int sh_main(int argc, char **argv) { char buffer[256]; printf("%s : ", getcwd(buffer, 256)); struct sb line; - sb_init(&line, 256); + sb_init(&line); get_line(&line); { struct TOKEN *h = lex(SB_TO_SV(line)); -- cgit v1.2.3