diff --git a/src/bin/shell/main.c b/src/bin/shell/main.c index ada9e50..1008258 100755 --- a/src/bin/shell/main.c +++ b/src/bin/shell/main.c @@ -28,12 +28,8 @@ #include int main() { - unsigned char *buffer,*tmp; + unsigned char buffer[256],*tmp; int cPid = 0; - if (!(buffer = (char *)malloc(256))) { - printf("Error\n"); - exit(1); - } while (1) { printf("UbixOS: "); gets((char *)&buffer); @@ -73,4 +69,4 @@ } } } - } + } \ No newline at end of file