[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] Re: broken multihead support?
From:       Stephan Kulow <coolo () kde ! org>
Date:       2001-02-22 9:06:23
[Download RAW message or body]

Matthias Kretz wrote:
> 
> I had the same error and I've found a way to fix it:
> 
> from the man-page of "putenv":
> 
> int putenv(const char *string);
> (..)
> The string pointed to by string becomes part of the environment, so altering
> the string changes the environment.
> 
> And that's the problem. The QCString which is used in the "putenv"-call is
> destructed right after the call, so that $DISPLAY isn't set anymore.
> Moving the declaration of the QCString a little up already does it.
> 
> Patches attached - I'll commit if nobody objects
> 
Hmm, you want to add a strdup() around the QCString to avoid that. We do that
in several other places too

Greetings, Stephan

-- 
Teigwaren heissen Teigwaren, weil sie Teig waren * J. v. d. Lippe
MFCH

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic