Skip to content

Commit

Permalink
- fix File.write test fputs using EOF, seems to work on both Linux an…
Browse files Browse the repository at this point in the history
…d Windows.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@23315 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Nov 11, 2014
1 parent f78ab67 commit cf643e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Util/File.mo
Expand Up @@ -106,7 +106,7 @@ static inline void om_file_write(FILE **file,const char *data)
if (!*file) {
ModelicaError(\"Failed to write to file (not open)\");
}
if (0 < fputs(data,*file)) {
if (EOF == fputs(data,*file)) {
ModelicaFormatError(\"Failed to write to file: %s\\n\", strerror(errno));
}
}
Expand Down

0 comments on commit cf643e7

Please sign in to comment.