[GRASS5] r.thin lseek problems for large files
Glynn Clements
glynn at gclements.plus.com
Thu Sep 8 13:17:23 EDT 2005
Andrew Danner wrote:
> r.thin is segfaulting on large files because of a bad type in a couple
> of lseeks.
>
> grass61.cvs/raster/r.thin/io.c
>
> lines 71 and 77 read
>
> lseek(file,(long) row * buf_len,0);
>
> but should be
>
> lseek(file, ((off_t)row) * buf_len,0);
>
> can some make the change in CVS?
Note: you don't need the extra brackets; type casts bind tighter than
binary operators.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list