--- a/ckcftp.c
+++ b/ckcftp.c
@@ -15488,7 +15488,7 @@
             if (!p)
 #endif /* OS2ORUNIX */
 #ifdef UNIX                             /* Systems that have a standard */
-                p = "/tmp/";            /* temporary directory... */
+                p = "@TERMUX_PREFIX@/tmp/";            /* temporary directory... */
 #else
 #ifdef datageneral
             p = ":TMP:";
