[GRASS5] Re: [bug #223] (grass) d.zoom segfaults

GRASS grass at geni.cemtlo.com
Tue Mar 20 19:19:52 EST 2001


> From neteler at geog.uni-hannover.de Wed Mar 21 02:21:02 2001
> Date: Tue, 20 Mar 2001 17:45:00 +0000
> From: Markus Neteler <neteler at geog.uni-hannover.de>
> To: grass5 at geog.uni-hannover.de
> Subject: Re: [GRASS5] Re: [bug #223] (grass) d.zoom segfaults
>
> 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);
> > >       }
> > 
> > 

Hi Markus,

I see. I'm correcting it. :-)


Regards,
Huidae Cho

---------------------------------------- 
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