Skip to content

Commit

Permalink
Close #38
Browse files Browse the repository at this point in the history
  • Loading branch information
plankp committed Nov 19, 2015
1 parent 910d96d commit 756f0d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ int kmain(struct multiboot* mboot_ptr)
return 0;
}

#define RBUFF 256
void catFile(fs_node_t* fsnode)
{
printch('\n', 0x0F);
if ((fsnode->flags & 0x7) == FS_FILE)
{
char buf[RBUFF];
uint32 sz = read_fs(fsnode, 0, RBUFF, (uint8*) buf);
const uint32 rbuff = fsnode->length;
char buf[rbuff];
uint32 sz = read_fs(fsnode, 0, rbuff, (uint8*) buf);
uint32 j;
for (j = 0; j < sz; j++)
printch(buf[j], 0x0F);
Expand Down

0 comments on commit 756f0d0

Please sign in to comment.