diff --git a/pdblocate/pdblocate.cpp b/pdblocate/pdblocate.cpp index c8e7e3e25..6644397f2 100644 --- a/pdblocate/pdblocate.cpp +++ b/pdblocate/pdblocate.cpp @@ -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();