10/07/2009 1:15 PM
post39546
|
On 7-Oct-09, at 12:46 PM, Neil Schellenberger wrote:
> No fault of your change, but that code's simply not going to work
> properly for pipes or FIFOs. The code really ought to take short
> reads
> into account.
Yeah, short reads never really were taken into account. It is rather
unfortunate.
>
> FWIW, I'd probably initialize the two prev_* variables to zero or else
> comparing two zero length files might conceivably produce
> "interesting"
> results.
They are global so there are init'd to zero by definition.
--
Cheers,
Adam
QNX Software Systems
[ amallory@qnx.com ]
---------------------------------------------------
|
|
|