commit | 3cd66ee850bba5e76e0b323efa4b306ce337a9b9 | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Tue Sep 25 13:22:41 2012 -0700 |
committer | Lee Thomason <leethomason@gmail.com> | Tue Sep 25 13:22:41 2012 -0700 |
tree | 183798b16d89128172cbe78af7ab50af79dfa71f | |
parent | 99024dc20b19886cd306836b16394c3c87a2d266 [diff] [blame] |
fix a fopen bug: rb should be w
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index c7f19b9..0bee8bf 100644 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1602,7 +1602,7 @@ errno_t err = fopen_s(&fp, filename, "w" ); if ( !fp || err) { #else - fp = fopen( filename, "rb" ); + fp = fopen( filename, "w" ); if ( !fp) { #endif SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, filename, 0 );