fixed typo in fgetpos, changed return -1 to 0