[GRASS5] [bug #4244] (grass) segmentation library short read()s
Glynn Clements
glynn at gclements.plus.com
Mon Apr 17 12:48:34 EDT 2006
Hamish wrote:
> > Request Tracker wrote:
> > this bug's URL: http://intevation.de/rt/webrt?serial_num=4244
> > ----------------------------------------------------------------
> >
> > Subject: segmentation library short read()s
> ...
>
> > >Specifically, the line:
> > >
> > > if ( lseek(fd,nbytes-1,SEEK_SET) < 0 ) {
> > >
> > >should use SEEK_CUR rather than SEEK_SET, as it is supposed to be
> > >writing nbytes from the current position, not from the start of the
> > >file.
[snip]
> .... so, should this change be committed to CVS or not?
Yes.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list