1
0
Fork 0

properties: open file as binary.

May fix Windows issues.
This commit is contained in:
hpi1 2019-04-17 11:57:45 +03:00
parent e82e243005
commit 109bbb0089
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ static int _read_prop_file(const char *file, char **data)
return 0;
}
fp = file_open(file, "rt");
fp = file_open(file, "rb");
if (!fp) {
goto unlink;
}
@ -114,7 +114,7 @@ static int _write_prop_file(const char *file, const char *data)
return -1;
}
fp = file_open(file, "wt");
fp = file_open(file, "wb");
if (!fp) {
return -1;
}