mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-01-20 02:10:10 +03:00
Fix bugs reported by Coverity Scan.
This commit is contained in:
@ -513,7 +513,7 @@ void GetHomeDirW(wchar_t *path, UINT size)
|
||||
if (GetEnvW(L"HOMEDRIVE", drive, sizeof(drive)) &&
|
||||
GetEnvW(L"HOMEPATH", hpath, sizeof(hpath)))
|
||||
{
|
||||
UniFormat(path, sizeof(path), L"%s%s", drive, hpath);
|
||||
UniFormat(path, size, L"%s%s", drive, hpath);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user