From: Richard M. Stallman Date: Thu, 15 Jun 1995 15:28:34 +0000 (+0000) Subject: (call-process-region) [DOS_NT]: Use IS_DIRECTORY_SEP. X-Git-Tag: emacs-19.34~3621 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0774fcf89c25df2a9c3b6952f64c2bc82592925e;p=emacs.git (call-process-region) [DOS_NT]: Use IS_DIRECTORY_SEP. (call-process-region) [WINDOWSNT]: Use proper temp file template. --- 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