We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ff2b14 commit f51270fCopy full SHA for f51270f
src/OrcLib/Robustness.cpp
@@ -345,8 +345,8 @@ LONG WINAPI Robustness::UnhandledExceptionFilter(__in struct _EXCEPTION_POINTERS
345
}
346
else
347
{
348
- wchar_t currentDirectory[MAX_PATH+1];
349
- currentDirectory[sizeof(currentDirectory) - 1] = L'\0';
+ wchar_t currentDirectory[MAX_PATH + 1];
+ currentDirectory[MAX_PATH] = L'\0';
350
GetCurrentDirectoryW(MAX_PATH, currentDirectory);
351
printf("MiniDumpWriteDump: write %S%s\n", currentDirectory, filename);
352
0 commit comments