[GRASS5] r.thin lseek problems for large files

Andrew Danner adanner at cs.duke.edu
Wed Sep 7 19:31:14 EDT 2005


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?

Thanks,

-Andy




More information about the grass-dev mailing list