Android support part 1

This commit is contained in:
Linus Dierheimer
2022-01-09 16:51:57 +01:00
parent 31d0729cdd
commit bf60429e36
5 changed files with 56 additions and 15 deletions
+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);