From 52a012c50ff5d1a5e9b6106f6c2eb05a14fef0b5 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sat, 17 Feb 2018 21:17:11 -0500 Subject: [PATCH] Pass the actual arg-str start to envSetNextLoad(). --- nx_main/loaders/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx_main/loaders/builtin.c b/nx_main/loaders/builtin.c index 3dd03d1..b93f286 100644 --- a/nx_main/loaders/builtin.c +++ b/nx_main/loaders/builtin.c @@ -17,7 +17,7 @@ static void launchFile(const char* path, argData_s* args) /*if (strncmp(path, "sdmc:/",6) == 0) path += 5;*/ memcpy(argBuf, args->buf, sizeof(args->buf)); - Result rc = envSetNextLoad(path, (char*)argBuf); + Result rc = envSetNextLoad(path, (char*)&argBuf[1]); if(R_FAILED(rc)) fatalSimple(rc);//TODO: How should failing be handled? uiExitLoop(); }