summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--win32/pwd.c2
2 files changed, 2 insertions, 1 deletions
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);
}