diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-07-31 10:11:24 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-07-31 14:15:23 -0600 |
| commit | 430b435a9b6e2c17f38e518281040ef53f5ea3f1 (patch) | |
| tree | 1fe2d87c7babbc7b6e471efb7c296c9e628653dc | |
| parent | d7802ab8c5c6c06796bcffe5d595b9cf431ddfae (diff) | |
| download | usermoji-430b435a9b6e2c17f38e518281040ef53f5ea3f1.tar.xz | |
loader: Fix alloca ro loader_stack_alloc() for Windows
| -rw-r--r-- | loader/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
