changeset 12238:f442c22815b8

(call-process-region) [DOS_NT]: Use IS_DIRECTORY_SEP. (call-process-region) [WINDOWSNT]: Use proper temp file template.
author Richard M. Stallman <rms@gnu.org>
date Thu, 15 Jun 1995 15:28:34 +0000
parents f5ad41d728d3
children ff7738cdbd99
files src/callproc.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Thu Jun 15 15:28:03 1995 +0000
+++ b/src/callproc.c	Thu Jun 15 15:28:34 1995 +0000
@@ -623,9 +623,13 @@
       *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