From 0774fcf89c25df2a9c3b6952f64c2bc82592925e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 15 Jun 1995 15:28:34 +0000 Subject: [PATCH] (call-process-region) [DOS_NT]: Use IS_DIRECTORY_SEP. (call-process-region) [WINDOWSNT]: Use proper temp file template. --- src/callproc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2