termux-packages/packages/timidity++/timidity-common.c.patch

12 lines
360 B
Diff
Raw Normal View History

2022-04-18 00:34:09 +02:00
--- 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