Skip to content

Commit f5a5834

Browse files
author
Peter Szabo
committed
fixed open_tmpnam invocation on Win32
1 parent 2782898 commit f5a5834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gensio.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ int Files::system3(char const *commands) {
893893
p=commands; while (*p!='\0' && *p!='\n') p++;
894894
if (*p=='\0') return system(commands); /* no newline -- simple run */
895895
SimBuffer::B tmpnam;
896-
FILE *f=Files::open_tmpnam(tmpnam, /*binary_p:*/false, ".bat");
896+
FILE *f=Files::open_tmpnam(tmpnam, "w", ".bat");
897897
tmpnam.term0();
898898
Files::tmpRemoveCleanup(tmpnam());
899899
fprintf(f, "@echo off\n%s\n", commands);

0 commit comments

Comments
 (0)