From 430b435a9b6e2c17f38e518281040ef53f5ea3f1 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Fri, 31 Jul 2015 10:11:24 -0600 Subject: loader: Fix alloca ro loader_stack_alloc() for Windows --- loader/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/loader.c b/loader/loader.c index e10b9aa7..06c86f61 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1444,7 +1444,7 @@ static void loader_get_manifest_files(const char *env_override, // Make a copy of the input we are using so it is not modified // Also handle getting the location(s) from registry on Windows if (override == NULL) { - loc = alloca(strlen(location) + 1); + loc = loader_stack_alloc(strlen(location) + 1); if (loc == NULL) { loader_log(VK_DBG_REPORT_ERROR_BIT, 0, "Out of memory can't get manifest files"); return; -- cgit v1.2.3