--- a/diffstat.c +++ b/diffstat.c @@ -3249,7 +3249,7 @@ copy_stdin(char **dirpath) const char *tmp = getenv("TMPDIR"); char *result = NULL; if (tmp == NULL) - tmp = "/tmp/"; + tmp = "@TERMUX_PREFIX@/tmp/"; *dirpath = xmalloc(strlen(tmp) + 12); strcpy(*dirpath, tmp);