Please, read binary in binary :)
This commit is contained in:
parent
cbd8ea9aeb
commit
3f11009766
1 changed files with 1 additions and 1 deletions
|
@ -1305,7 +1305,7 @@ BinaryMapFile* initBinaryMapFile(std::string inputName) {
|
|||
openFiles.erase(iterator);
|
||||
}
|
||||
|
||||
int fileDescriptor = open(inputName.c_str(), O_RDONLY);
|
||||
int fileDescriptor = open(inputName.c_str(), O_RDONLY | O_BINARY);
|
||||
if (fileDescriptor < 0) {
|
||||
osmand_log_print(LOG_ERROR, "File could not be open to read from C : %s", inputName.c_str());
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue