Android support part 1

This commit is contained in:
Linus Dierheimer committed 2022-01-09 16:51:57 +01:00
1 parent 31d0729cdd
commit bf60429e36
5 files changed
+56 -15

No files matched your search

+2 -2
View File
@@ -249,8 +249,8 @@ const FFTerminalShellResult* ffDetectTerminalShell(FFinstance* instance)
result.userShellExeName = result.userShellExe.chars;
ffStrbufInit(&result.userShellVersion);
char ppid[256];
snprintf(ppid, 255, "%i", getppid());
char ppid[32];
snprintf(ppid, sizeof(ppid) - 1, "%i", getppid());
getTerminalShell(&result, ppid);
getTerminalFromEnv(&result);