Fix tabs and nio_fgets return value