Removed out-of-bounds check in io_fgets since it doesn't work as it's not possible to determine allocated size from a pointer