From 77ab6870d6eab240aa1242109e8dc7aab3c434f2 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Thu, 8 Sep 2016 18:51:36 +0200 Subject: [PATCH] fixed getModulePath_ local buffer size incorrectly set to 1 for debugging purposes --- src/whereami.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/whereami.c b/src/whereami.c index 19d3781..d721df9 100644 --- a/src/whereami.c +++ b/src/whereami.c @@ -58,7 +58,7 @@ extern "C" { static int WAI_PREFIX(getModulePath_)(HMODULE module, char* out, int capacity, int* dirname_length) { - wchar_t buffer1[1]; + wchar_t buffer1[MAX_PATH]; wchar_t buffer2[MAX_PATH]; wchar_t* path = NULL; int length = -1;