We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2782898 commit f5a5834Copy full SHA for f5a5834
gensio.cpp
@@ -893,7 +893,7 @@ int Files::system3(char const *commands) {
893
p=commands; while (*p!='\0' && *p!='\n') p++;
894
if (*p=='\0') return system(commands); /* no newline -- simple run */
895
SimBuffer::B tmpnam;
896
- FILE *f=Files::open_tmpnam(tmpnam, /*binary_p:*/false, ".bat");
+ FILE *f=Files::open_tmpnam(tmpnam, "w", ".bat");
897
tmpnam.term0();
898
Files::tmpRemoveCleanup(tmpnam());
899
fprintf(f, "@echo off\n%s\n", commands);
0 commit comments