[GRASS5] Re: s.kcv in 5.4, v.kcv in 5.7?

Hamish hamish_nospam at yahoo.com
Sun Oct 17 01:24:59 EDT 2004


> It doesn't work for x|y|%z format - I got a segmentation fault. Maybe
> it works for other site types.


main.c line 215:

      /* now sort these distances */
      qsort (d, k, sizeof (D), dcmp);
      z[d[0].i].z = i + 1;
      outSite->east  = z[d[0].i].x;
      outSite->north = z[d[0].i].y;
      outSite->ccat  = z[d[0].i].z;
      G_site_put (fdtest, outSite);


but d[0].i is -1, which is not a valid array element.



Hamish




More information about the grass-dev mailing list