From 0604d037e65e60cd8055e38b2a43d44abb1613c9 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 25 Jun 2018 16:12:31 +0100 Subject: [PATCH] Fix incorrect allocation not allowing space for pathname --- qrenderdoc/renderdocui_stub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/renderdocui_stub.cpp b/qrenderdoc/renderdocui_stub.cpp index 767911756..1ba141c99 100644 --- a/qrenderdoc/renderdocui_stub.cpp +++ b/qrenderdoc/renderdocui_stub.cpp @@ -27,7 +27,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nShowCmd) { - size_t len = wcslen(lpCmdLine) + 64; + size_t len = 512 + wcslen(lpCmdLine) + 64; wchar_t *paramsAlloc = new wchar_t[len + 1];