diff --git a/src/bin/shell/commands.c b/src/bin/shell/commands.c index 8a901c1..0406114 100755 --- a/src/bin/shell/commands.c +++ b/src/bin/shell/commands.c @@ -30,7 +30,6 @@ int commands(inputBuffer *data) { int cPid = 0x0,i = 0x0; - //printf("Test: [%s]\n",data->argv[1]); if (0 == memcmp(data->argv[1], "uname", 5)) { printf("UbixOS v0.01a " __DATE__" " __TIME__ " \n"); return(1); diff --git a/src/sys/ubixfs/file.c b/src/sys/ubixfs/file.c index acda3d9..cd3f257 100755 --- a/src/sys/ubixfs/file.c +++ b/src/sys/ubixfs/file.c @@ -50,7 +50,7 @@ //Search For The File if (findFile((char *)file,tmpFd) == 1) { //If The File Is Found Then Set Up The Descriptor - tmpFd->buffer = (uChar *)0x1000;//(uChar *)kmalloc(sizeof(uChar)*512); + tmpFd->buffer = (uChar *)kmalloc(4096);//(uChar *)0x1000; sprintf(tmpFd->fileName,"%s",file); //This Will Set Up The Descriptor Modes while (flags[0]) { @@ -126,7 +126,7 @@ //If Fd Is The First FD Then Reset fdTable if (tmpFd == fdTable) { fdTable = tmpFd->next; -// kfree(fd->buffer); + kfree(fd->buffer); kfree(fd); systemVitals->openFiles--; return(1); @@ -135,7 +135,7 @@ else if (tmpFd == lastFd) { prevFd->next = 0x0; lastFd = prevFd; -// kfree(fd->buffer); + kfree(fd->buffer); kfree(fd); systemVitals->openFiles--; return(1);