[Refs #87: Static Analysis] Extra wchar_t for null terminator

This commit is contained in:
baldurk
2014-09-28 18:47:03 +01:00
parent 4d72d85c45
commit 441c97e09b
+1 -1
View File
@@ -403,7 +403,7 @@ wstring LookupModule(wstring moduleDetails)
{
wstring sympath = GetSymSearchPath();
wchar_t path[MAX_PATH] = {0};
wchar_t path[MAX_PATH+1] = {0};
BOOL found = dynSymFindFileInPathW(GetCurrentProcess(), sympath.c_str(), pdbName, &guid, age, 0, SSRVOPT_GUIDPTR, path, NULL, NULL);
DWORD err = GetLastError();