[GRASS5] Re: [bug #223] (grass) d.zoom segfaults
Markus Neteler
neteler at geog.uni-hannover.de
Tue Mar 20 12:45:00 EST 2001
Hi Huidae,
you changed src/libes/gis/find_file.c recently to fix the
i.in.erdas. Do you have a recommendation for below proposal
from Job?
Thanks
Markus
On Tue, Mar 20, 2001 at 01:07:01PM +0100, spijker at geo.uu.nl wrote:
> On Mon, 19 Mar 2001, Request Tracker wrote:
>
> > d.zoom segfaults direct after startup without any message.
> > region is :
> > CURRENT REGION: N=431250 S=350000 RES=250 ROWS=325
> > E= 80000 W= 13000 RES=250 COLS=268
>
>
> It seems the bug was caused by a library call in
> src/libes/gis/find_file.c. A string was copied to an empty string wich
> caused the segfault.
>
> 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);
> > }
>
>
> Grtz, Job
>
>
> -----------------------------------------------------------------------
> Job Spijker
> Faculty of Geographical Sciences, Utrecht University
> -----------------------------------------------------------------------
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list