[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] New: Setting language within gnubg
From: |
Holger |
Subject: |
Re: [Bug-gnubg] New: Setting language within gnubg |
Date: |
Thu, 28 Aug 2003 22:07:57 +0200 |
On Wed, 27 Aug 2003 18:08:54 +0200, Jim Segrave wrote:
> On Wed 27 Aug 2003 (16:10 +0200), Jim Segrave wrote:
> > I've put in a couple of fixes.
> >
> > char *szLang="system"; can put the string "system" in read-only
> > memory. It could also be overwritten with longer strings. I don't
> > think this was the problem
>
> This is slightly wrong - the original was char szLang[]= "system";
> which would not be a candiate for read only memory (but isn't big
> enough for what CommandSetLang() does.
Oops, overlooked this.
> > putenv(char *envstring) under glibc puts the actual pointer envstring
> > into the environment, so it can not be a local variable. Under FreeBSD
> > and Solaris, a copy of envstring is put in the environment, under
> > Linux the environment variable disappears and is replaced with junk.
> >
> > I don't know if this is the cause, but I've committed a fix.
Thanks.
Regards,
Holger