Shell: remove trailing \0 in JSON output

This commit is contained in:
Carter Li
2024-01-24 09:27:50 +08:00
committed by 李通洲
parent 4e2c124442
commit 025a708ecb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ static void getExePath(FFPlatform* platform)
exePathLen = 0;
#endif
if (exePathLen > 0)
exePath->length = (uint32_t) exePathLen;
exePath->length = (uint32_t) (exePathLen - 1);
}
static void platformPathAddEnv(FFlist* dirs, const char* env)