summaryrefslogtreecommitdiff
path: root/drivers/unix
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-02 12:03:33 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-02 12:03:33 -0300
commit5769f8aaaed70fa28b92562255dd61c1c371acf5 (patch)
tree2bf26429edfb3515067c41f6be870459c202e682 /drivers/unix
parent84f96eb523fd13329b2c7bfac952f955aed6ca62 (diff)
Change rb+ to wb+ on file access READ_WRITE to allow more use cases, closes #2278
Diffstat (limited to 'drivers/unix')
-rw-r--r--drivers/unix/file_access_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/file_access_unix.cpp b/drivers/unix/file_access_unix.cpp
index 9843405d4a..349831077c 100644
--- a/drivers/unix/file_access_unix.cpp
+++ b/drivers/unix/file_access_unix.cpp
@@ -74,7 +74,7 @@ Error FileAccessUnix::_open(const String& p_path, int p_mode_flags) {
else if (p_mode_flags==WRITE)
mode_string="wb";
else if (p_mode_flags==READ_WRITE)
- mode_string="rb+";
+ mode_string="wb+";
else
return ERR_INVALID_PARAMETER;