termux-packages/packages/timidity++/timidity-common.c.patch
2022-04-19 19:49:53 +09:00

12 lines
360 B
Diff

--- a/timidity/common.c
+++ b/timidity/common.c
@@ -192,7 +192,7 @@
tmpdir = getenv("TMPDIR");
#endif
if(tmpdir == NULL || strlen(tmpdir) == 0)
- tmpdir = PATH_STRING "tmp" PATH_STRING;
+ tmpdir = "@TERMUX_PREFIX@/tmp/";
if(IS_PATH_SEP(tmpdir[strlen(tmpdir) - 1]))
snprintf(filename, sizeof(filename), "%sXXXXXX.%s", tmpdir, ext);
else