diff options
author | Anton Kling <anton@kling.gg> | 2024-10-09 14:00:20 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-10-09 14:00:20 +0200 |
commit | f4a7c749b0f4bfa4c1007e64ca5f8ecb254bbfe1 (patch) | |
tree | 9c640faa1897a0532f446fe94d7ff8e20b03fc54 | |
parent | aabbd212f6ba9a38999ea6e6f478bc8afae677d0 (diff) |
sh: Conform to the new stringbuilder functions
-rw-r--r-- | userland/minibox/utilities/sh/sh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/userland/minibox/utilities/sh/sh.c b/userland/minibox/utilities/sh/sh.c index e129044..f907cc2 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); + sb_init(&file, 256); 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); + sb_init(&line, 256); get_line(&line); { struct TOKEN *h = lex(SB_TO_SV(line)); |