On Sat, September 22, 2007 05:27, Glynn Clements wrote: > My next suggestion is to re-write xdr_stdio to use read() and write() > instead of fread() and fwrite(), e.g.: > > - if (fread((caddr_t)lp, sizeof(long), 1, (FILE *)xdrs->x_private) != 1) > + if (read(fileno((FILE *)xdrs->x_private), (caddr_t)lp, sizeof(long)) != > sizeof(long)) >
That seems to work ! I just changed the four occurrences of fread/fwrite to read/write (see diff attached) and now v.out.ogr runs smoothly both with Benjamin's test point data and with the spearfish landcover areas. I'll post new binaries as soon as compilation is over, so that others can test as well. Thanks a lot, Glynn ! Moritz
xdr_stdio.diff
Description: Binary data
_______________________________________________ grass-dev mailing list [email protected] http://grass.itc.it/mailman/listinfo/grass-dev

