0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 00:10:52 +00:00
termux-packages/packages/imlib2/0002-fix-hardcoded-paths.patch
Kevin Williams 3635ff5eb3 upgpkg(main/imlib2): 1.12.2
Signed-off-by: Kevin Williams <admin@utermux.dev>
2024-02-05 16:41:40 +08:00

23 lines
741 B
Diff

--- a/src/modules/loaders/decompress_load.c
+++ b/src/modules/loaders/decompress_load.c
@@ -10,7 +10,7 @@
ImlibLoader *loader;
int dest, res;
const char *s, *p, *q;
- char tmp[] = "/tmp/imlib2_loader_dec-XXXXXX";
+ char tmp[] = "@TERMUX_PREFIX@/tmp/imlib2_loader_dec-XXXXXX";
char *real_ext;
rc = LOAD_FAIL;
--- a/src/modules/loaders/loader_id3.c
+++ b/src/modules/loaders/loader_id3.c
@@ -514,7 +514,7 @@
if (loader)
{
- char tmp[] = "/tmp/imlib2_loader_id3-XXXXXX";
+ char tmp[] = "@TERMUX_PREFIX@/tmp/imlib2_loader_id3-XXXXXX";
int dest, res;
if ((dest = mkstemp(tmp)) < 0)