Skip to content

Commit

Permalink
- Fixed the System.systemCall when its called with outFile argument f…
Browse files Browse the repository at this point in the history
…or Windows.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18297 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Nov 26, 2013
1 parent b885350 commit 6c48c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/runtime/systemimpl.c
Expand Up @@ -527,7 +527,7 @@ int SystemImpl__systemCall(const char* str, const char* outFile)
#if defined(__MINGW32__) || defined(_MSC_VER)
if (*outFile) {
const char *command = malloc(strlen(str) + strlen(outFile) + 9);
sprintf(command, "%s > %s 2>&1");
sprintf(command, "%s > %s 2>&1", str, outFile);
status = system(command);
free(command);
} else {
Expand Down

0 comments on commit 6c48c58

Please sign in to comment.