[GRASS-dev] Re: [STATSGRASS] cant read raster created with r.neighbours

Glynn Clements glynn at gclements.plus.com
Thu Jul 26 17:38:51 EDT 2007


Roger Bivand wrote:

> CC-ed to GRASS-dev, short file name buffer issue in 
> raster/r.out.bin/main.c line 225:

> Yes, because a shorter file name buffer is declared on line 225 of main.c 
> in r.out.bin - with a length of 100, so fname fits, but the header 
> overwrites it, I think - could I suggest that the lengths of the out_bufs 
> in line 255 be set to [GNAME_MAX] instead?

GPATH_MAX is the standard constant for pathnames.

Fixed in CVS.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list