Fix bugs reported by Coverity Scan.

This commit is contained in:
Daiyuu Nobori committed 2018-09-28 22:39:38 +09:00
1 parent 06c06f1db8
commit ee9990317b
12 files changed
+29 -15

No files matched your search

+1 -1
View File
@@ -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
{