mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-08 08:44:57 +03:00
Fix bugs reported by Coverity Scan.
This commit is contained in:
@ -15081,7 +15081,7 @@ void GetMachineNameEx(char *name, UINT size, bool no_load_hosts)
|
||||
{
|
||||
if (GetMachineNameFromHosts(tmp2, sizeof(tmp2)))
|
||||
{
|
||||
StrCpy(name, sizeof(name), tmp2);
|
||||
StrCpy(name, size, tmp2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user