[GRASS5] [bug #2767] (grass) r.stats bug (due to recent G_store() fix?)

guest user via RT grass-bugs at intevation.de
Mon Dec 6 12:13:05 EST 2004


Trying to fix the new (at least recently discovered) bug
in r.stats:

lib/gis/cats.c

int 
G_set_raster_cats_title (char *title, struct Categories *pcats)
{
    if (title == NULL) title="";
    pcats->title = G_store (title);     <- it crashes here
    G_newlines_to_spaces (pcats->title);
    G_strip (pcats->title);
      return 0;
}

For the crashing map title="" (so above if condition used).
Reverting locally store.c (G_store() function) didn't help.

Clueless,
 Markus




-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list