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

List:       kde-devel
Subject:    Re: Porting KDE 2 (1.90) to other Unixes ...
From:       Espen Sand <espensa () online ! no>
Date:       2000-05-10 18:58:03
[Download RAW message or body]

On Wed, 10 May 2000, Thomas Leitner wrote:
> Hi,
> 
> I've ported KDE 1.1.2 to Tru64 and thought I'd give 1.90 a try. While in
> 1.1.2 I took the quick & dirty approach in KDE 2 I want to make it better.
> 
> The first problem: Under Tru64, there's no "setenv" system call. In my
> 1.1.2 port, I used to work around this with something like this:
> 
> #define setenv(a, b, c) \
>         { char buf[8192]; sprintf(buf, "%s=%s", a, b); putenv(buf); }

Hi, 
with the new QString enhacements you can modify the define above 
to remove a potensial overflow problem:

#define setenv(a, b, c) { putenv( QString("%1=%2").arg(a).arg(b) ) }


-- 
Espen Sand

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

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