diff --git a/bin/shell/exec.c b/bin/shell/exec.c index 89ec348..f45d8a8 100644 --- a/bin/shell/exec.c +++ b/bin/shell/exec.c @@ -33,7 +33,7 @@ #include "shell.h" static char *argv_init[2] = { - "/bin/shell", + "1234567890123456789012345678901234567890", NULL, }; // ARGV For Initial Proccess static char *envp_init_old[12] = { @@ -71,6 +71,7 @@ if (!cPid) { sprintf(file, "%s%s", cwd, data->argv[1]); + sprintf(argv_init[0], file); execve(file, argv_init, envp_init_old); printf("%s: Command Not Found.\n", data->argv[1]); exit(-1); diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index cbe477f..c0edb43 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -104,7 +104,7 @@ FL_FILE *_file = (FL_FILE*) fd->res; //kprintf("Reading: %i[%i]\n", size, offset); - if (fl_fseek(_file, offset, 0) != offset) + if (fl_fseek(_file, offset, 0) != 0) kprintf("SEEK FAILED!"); size = fl_fread(data, size, 1, _file);