Skip to content

Commit 75e0cb0

Browse files
final commit
1 parent 6d0abc2 commit 75e0cb0

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

filesystem/kernel/kernel.sys

0 Bytes
Binary file not shown.

src/drivers/ext2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ EXT2_DIRECTORY_ENTRY_t * load_directory_structure(int inode_num, void * buff) {
245245
load_inode(inode_num, inode);
246246
EXT2_DIRECTORY_ENTRY_t * dirinfo = (EXT2_DIRECTORY_ENTRY_t *)buff;
247247
if(!dirinfo) puts("null");
248-
memset((void *)dirinfo, '\0', 2*inode->size_low);
248+
memset((void *)dirinfo, '\0', inode->size_low);
249249
int i;
250250
// read the contents
251251
for(i = 0; i < inode->size_low/(1024<<ext2_superblock->LOG2_BLOCK_SIZE); i++) {

0 commit comments

Comments
 (0)