--- a/dol.c
+++ b/dol.c
@@ -825,7 +825,7 @@
     Char *lbp, *obp, *mbp;
     Char  **vp;
     bool    quoted;
-    char   tmp[] = "/tmp/sh.XXXXXXXX";
+    char   tmp[] = "@TERMUX_PREFIX@/tmp/sh.XXXXXXXX";
 
     if (mkstemp(tmp) < 0)
 	stderror(ERR_SYSTEM, tmp, strerror(errno));
