summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-06-15 15:28:34 +0000
committerRichard M. Stallman <rms@gnu.org>1995-06-15 15:28:34 +0000
commit0774fcf89c25df2a9c3b6952f64c2bc82592925e (patch)
tree8a33c2fc6a352325914dad872ce0b3c542fe7a7b
parentd51bca10bd8a2a39013060457a40d09671702616 (diff)
downloademacs-0774fcf89c25df2a9c3b6952f64c2bc82592925e.tar.gz
emacs-0774fcf89c25df2a9c3b6952f64c2bc82592925e.tar.bz2
emacs-0774fcf89c25df2a9c3b6952f64c2bc82592925e.zip
(call-process-region) [DOS_NT]: Use IS_DIRECTORY_SEP.
(call-process-region) [WINDOWSNT]: Use proper temp file template.
-rw-r--r--src/callproc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 906674658f7..f87223c8d44 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -623,9 +623,13 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
*tempfile = '\0';
}
dostounix_filename (tempfile);
- if (tempfile[strlen (tempfile) - 1] != '/')
+ if (!IS_DIRECTORY_SEP (tempfile[strlen (tempfile) - 1]))
strcat (tempfile, "/");
+#ifdef WINDOWSNT
+ strcat (tempfile, "emXXXXXX");
+#else
strcat (tempfile, "detmp.XXX");
+#endif
#else /* not DOS_NT */
#ifdef VMS