From: Edin Kadribasic Date: Mon, 27 Sep 2004 22:21:52 +0000 (+0000) Subject: Fixed bug #30133 X-Git-Tag: php-5.0.3RC1~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67bee6eb6e08fa270baed84c5616b0e4b44e614a;p=php Fixed bug #30133 --- diff --git a/NEWS b/NEWS index cab8e45c24..32b02bca46 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, PHP 5.0.3 - Fixed bug #30147 (OO sqlite_fetch_object did not reset error handler). (Wez) +- Fixed bug #30133 (get_current_user() crashes on Windows). (Edin) - Fixed bug #30057 (did not detect IPV6 on FreeBSD 4.1). (Wez) 23 Sep 2004, PHP 5.0.2 diff --git a/win32/pwd.c b/win32/pwd.c index 311e2c6380..de3112db08 100644 --- a/win32/pwd.c +++ b/win32/pwd.c @@ -48,7 +48,7 @@ getlogin() STR_FREE(PW32G(login_name)); GetUserName(name, &max_len); name[max_len] = '\0'; - PW32G(login_name) = strdup(name); + PW32G(login_name) = estrdup(name); return PW32G(login_name); }