diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index f05dc24..cddf76d 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -147,9 +147,9 @@ _file = fl_fopen(file, "r"); else if ((fd->mode & 0x2) == 0x2) { if ((fd->mode & 0x8) == 0x8) - _file = fl_open(file, "a"); + _file = fl_fopen(file, "a"); else - _file = fl_open(file, "w"); + _file = fl_fopen(file, "w"); } else kprintf("Invalid Mode?");