From e76da47b31c172e0cda71155a59e6a389443d8c0 Mon Sep 17 00:00:00 2001 From: Mats Date: Thu, 17 Feb 2022 04:59:37 +0100 Subject: [PATCH] Fix base path when compiling with unix cwd (#13631) --- frontend/drivers/platform_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/drivers/platform_unix.c b/frontend/drivers/platform_unix.c index edc7c0902f..b3b5dad173 100644 --- a/frontend/drivers/platform_unix.c +++ b/frontend/drivers/platform_unix.c @@ -1799,7 +1799,7 @@ static void frontend_unix_get_env(int *argc, char base_path[PATH_MAX] = {0}; #if defined(RARCH_UNIX_CWD_ENV) /* The entire path is zero initialized. */ - base_path[0] = '.'; + getcwd(base_path, sizeof(base_path)); #elif defined(DINGUX) dingux_get_base_path(base_path, sizeof(base_path)); #else