Fix stupid bug in previous commit

This commit is contained in:
Vincent Barrilliot 2021-11-12 14:22:12 +00:00
parent 5512a5d3a3
commit 9e15c77851

View file

@ -566,7 +566,7 @@ short fchan_seek(t_channel * chan, long position, short base) {
return ERR_GENERAL;
}
return fatfs_to_foenix(f_lseek(file, position));
return fatfs_to_foenix(f_lseek(file, new_position));
}
return ERR_BADCHANNEL;