CeDOS - Commit 676e3fe2

bugfix: Programs called without arguments unstable
Celina Sophie Kalus
Sun, 26 Nov 2023 22:22:12 +0100
1 files changed, 1 insertions(+), 1 deletions(-)
M src/shell/shelf.csrc/shell/shelf.c

@@ -47,7 +47,7 @@ char *file = buffer;

char *args = (char *)(0); int i = 0; - while (1) { + while (buffer[i]) { if (buffer[i] == ' ') { buffer[i] = 0; args = &(buffer[i+1]);