0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/diffstat/diffstat.c.patch
2021-12-17 15:56:04 +02:00

12 lines
288 B
Diff

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