aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/diff.c b/editors/diff.c
index 5c8a55b93..0ae7e20b3 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -747,7 +747,7 @@ static int diffreg(char *file[2])
747#else 747#else
748 int fd_tmp; 748 int fd_tmp;
749 749
750 if (!(tmpdir=getenv("TMP")) && !(tmpdir=getenv("TEMP"))) 750 if (!(tmpdir=getenv("TMPDIR")))
751 goto out; 751 goto out;
752 tmpfile[i] = xasprintf("%s/difXXXXXX", tmpdir); 752 tmpfile[i] = xasprintf("%s/difXXXXXX", tmpdir);
753 fd_tmp = xmkstemp(tmpfile[i]); 753 fd_tmp = xmkstemp(tmpfile[i]);