Core: GetUserName now using getlogin_r instead of environment

This commit is contained in:
Mirek Fidler 2026-07-17 09:56:29 +02:00
parent b2744e1689
commit 3d0e0e786a

View file

@ -719,6 +719,9 @@ String GetUserName()
::GetUserNameW(temp, &w);
return temp;
#else
char user[1000];
if(getlogin_r(user, 999))
return user;
return Nvl(GetEnv("USER"), "root");
#endif
}