Two possible bug fixes
Tom Orth
orth at skyler.arc.ab.ca
Mon Aug 28 08:00:00 EDT 1995
Two possible bug fixes to the current GRASS distribution:
src/mapdev/Vlib/level_two.c:
In routine Vect__P_init_new_plus (map, name) I've
uncommented:
return ("Cannot open dig_plus file");
and added made sure the file was created if it didn't exist
in the following two locations:
before:
if ( (map->dig_fp = fopen(file, RW_str)) !=
NULL )
and before:
if ((plusfp = fopen (file, RW_str)) != NULL
)
src.alpha/ps.map/ps.map/cmd/main.c:
get_color_number requires a buffer to work with; a static strin
g
causes this routine to dump core !
#Added line 64:
static char tempcolor[20];
#Changed line 68,69 to:
signal (SIGINT, (void *) exit);
signal (SIGTERM, (void *) exit);
#Changed lines 108-110 to:
sprintf(tempcolor,"%s\0","black"); /* needs
a buffer to work with */
BLACK = get_color_number(tempcolor);
sprintf(tempcolor,"%s\0","white");
WHITE = get_color_number(tempcolor);
sprintf(tempcolor,"%s\0","grey");
GREY = get_color_number(tempcolor);
T.
-------------------------------------------------------------------------------
Thomas Orth, M.Sc. Alberta Research Council
Research Officer 3rd Floor, 6815 8th Street N.E.
Advanced Computing & Engineering Calgary, Alberta T2E 7H7
Spatial Information Management and Analysis Canada
-------------------------------------------------------------------------------
Email: Phone: Fax: WWW:
orth at arc.ab.ca (403) 297-7571 (403) 297-2339 http://www.arc.ab.ca
-------------------------------------------------------------------------------
I'd be really surprised if my opinions reflected those of my employers.
-------------------------------------------------------------------------------
More information about the grass-dev
mailing list