Index: src/platform-openbsd.cc |
=================================================================== |
--- src/platform-openbsd.cc (revision 6868) |
+++ src/platform-openbsd.cc (working copy) |
@@ -222,7 +222,7 @@ |
OS::MemoryMappedFile* OS::MemoryMappedFile::open(const char* name) { |
- FILE* file = fopen(name, "w+"); |
+ FILE* file = fopen(name, "r+"); |
if (file == NULL) return NULL; |
fseek(file, 0, SEEK_END); |