diff src/misc1.c @ 6721:7347229a646a v7.4.684

updated for version 7.4.684 Problem: When starting several Vim instances in diff mode, the temp files used may not be unique. (Issue 353) Solution: Add an argument to vim_tempname() to keep the file.
author Bram Moolenaar <bram@vim.org>
date Tue, 31 Mar 2015 13:33:08 +0200
parents 6529590f6c43
children 8accadbf0cbd
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -11049,7 +11049,7 @@ get_cmd_output(cmd, infile, flags, ret_l
 	return NULL;
 
     /* get a name for the temp file */
-    if ((tempname = vim_tempname('o')) == NULL)
+    if ((tempname = vim_tempname('o', FALSE)) == NULL)
     {
 	EMSG(_(e_notmp));
 	return NULL;