According to Sergey Poznyakoff on 2/6/2010 2:33 PM:
> Yes, it should. Thanks for the patch. However, I'd say it's second
> part:
> 
>> -  if (fseek (fp, 0L, SEEK_SET) != 0)
>> +  if (fseeko (fp, 0L, SEEK_SET) != 0)
> 
> is superfluous. When searching for 0, it makes no difference which
> function to use.

Yes, it DOES make a difference.  If the current offset of the file is >
2GiB, then fseek MUST fail, even for a seek of 0.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to