diff src/callproc.c @ 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 6ae23eecab6a
children 14792ea851f9
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