Christian Ehrlicher said the following, On 2008-05-15 14:29:
>> 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

This may be assertion as well in case of any of the *_s() function.

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)
_______________________________________________
Kde-windows mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-windows

Reply via email to