[GRASS5] Re: [bug #223] (grass) d.zoom segfaults
Edzer J. Pebesma
e.pebesma at geog.uu.nl
Tue Mar 20 12:05:20 EST 2001
spijker at geo.uu.nl wrote:
>
> The solution (or: my solution) is the following diff for find_file.c. I
> can submit it to the CVS but I don't like to mess with libraries and I
> don't know if there is a 'philosophy' behind the original method.
>
> 54c54,56
> < strcpy(mapset, xmapset);
> ---
> > if (!mapset=="") {
> > strcpy(mapset, xmapset);
> > }
>
Job -- voor je submit: je voorstel is
niet geheel zonder risico's -- probeer onderstaand programmaatje x.c.
Beter is wellicht:
if (mapset != NULL && *mapset != '\0') {
...
}
Grtz,
--
Edzer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x.c
Type: text/x-csrc
Size: 204 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20010320/1cb2671c/x.bin
More information about the grass-dev
mailing list