termux-packages/packages/transcode/import-clone.c.patch

12 lines
336 B
Diff
Raw Normal View History

2022-03-24 20:02:40 +01:00
--- a/import/clone.c
+++ b/import/clone.c
@@ -323,7 +323,7 @@
if ((a = getenv("TMPDIR")) != NULL)
tc_snprintf(b, PATH_MAX, "%s/%s", a, "fileXXXXXX");
else
- tc_snprintf(b, PATH_MAX, "%s/%s", "/tmp", "fileXXXXXX");
+ tc_snprintf(b, PATH_MAX, "%s/%s", "@TERMUX_PREFIX@/tmp", "fileXXXXXX");
name = mktemp(b);