[GRASS5] [bug #830] (grass) v.make.subj segmentation fault

Glynn Clements glynn.clements at virgin.net
Sat Nov 10 08:36:36 EST 2001


Markus Neteler wrote:

> The problem is here:
> src.contrib/SCS/vector/v.make.subj/cmd/main.c
> the qsort() line crashes for "cmd" (which is again a function).
> 
> No idea how to fix this... Anyone else?

The pointers need to be cast and dereferenced, i.e.

	return strcmp(*(const char **) a, *(const char **) b);

I'll commit a fix.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list