From 5996f5956f74bb747356236bcbec4d4fb9ddf2b9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 10 Oct 2015 08:33:37 -0700 Subject: loader: Use loc instead of location for getting the directory Without this, the VK_ICD_FILENAMES parameter ends up getting ignored --- loader/loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader/loader.c') diff --git a/loader/loader.c b/loader/loader.c index 51b9c6b0..80a628db 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -1694,12 +1694,12 @@ static void loader_get_manifest_files(const struct loader_instance *inst, // only Linux has relative paths char *dir; // make a copy of location so it isn't modified - dir = loader_stack_alloc(strlen(location) + 1); + dir = loader_stack_alloc(strlen(loc) + 1); if (dir == NULL) { loader_log(VK_DBG_REPORT_ERROR_BIT, 0, "Out of memory can't get manifest files"); return; } - strcpy(dir, location); + strcpy(dir, loc); loader_get_fullpath(file, dir, sizeof(full_path), full_path); -- cgit v1.2.3