diff --git a/filesystem/kernel/kernel.sys b/filesystem/kernel/kernel.sys index e7191ef..aafa319 100644 Binary files a/filesystem/kernel/kernel.sys and b/filesystem/kernel/kernel.sys differ diff --git a/src/drivers/ext2.c b/src/drivers/ext2.c index 65d2363..7bfca09 100644 --- a/src/drivers/ext2.c +++ b/src/drivers/ext2.c @@ -245,7 +245,7 @@ EXT2_DIRECTORY_ENTRY_t * load_directory_structure(int inode_num, void * buff) { load_inode(inode_num, inode); EXT2_DIRECTORY_ENTRY_t * dirinfo = (EXT2_DIRECTORY_ENTRY_t *)buff; if(!dirinfo) puts("null"); - memset((void *)dirinfo, '\0', 2*inode->size_low); + memset((void *)dirinfo, '\0', inode->size_low); int i; // read the contents for(i = 0; i < inode->size_low/(1024<LOG2_BLOCK_SIZE); i++) {