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

List:       kde-windows
Subject:    Re: [patch] remove crashes in putenv(): use "" instead of NULL value
From:       "Christian Ehrlicher" <Ch.Ehrlicher () gmx ! de>
Date:       2008-05-15 12:29:50
Message-ID: 20080515122950.108870 () gmx ! net
[Download RAW message or body]

> Von: "Jarosław Staniek"
> For review; remove crashes in putenv(): use "" instead of NULL value
> (needed 
> e.g. for unsetenv()).
> 
> NULL values caused a crash in strlen() and _putenv_s(), at least on Vista.
> 
> Noticed that in the code of knotify4:
> 
> unsetenv( "SESSION_MANAGER" );
Strange but fine with me :)

putenv_s really seems to be to 'more secure' function - it's more secure that it's \
crashing when using invalid values :D



Christian
-- 
249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de
_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows


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

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