mirror of
https://github.com/php/php-src.git
synced 2025-01-23 20:23:31 +08:00
MFB: bugfix #30133
This commit is contained in:
parent
b76deb94a3
commit
c48f96a790
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user