[Expat-discuss] Re: Beginner Problem

Karl Waclawek karl@waclawek.net
Wed, 18 Sep 2002 09:06:21 -0400


> ------------- Begin Forwarded Message -------------
> 
> Date: Tue, 17 Sep 2002 22:03:07 -0700
> From: Joe Collins <joe@mutantsoft.com>
> To: Josh Martin <Josh.Martin@abq.sc.philips.com>
> Subject: Re: Beginner Problem
> 
> Yup.
> for XML_ParseBuffer(parser, size, 0)
> I was using size from fstat instead of getting size from fread
> 
> -Joe

I am not a Unix guy, but I have seen this a few times
in Expat code I have encountered, causing a problem
almost every time..
Why is fread actually returning a different value than fstat?

Karl