3373. [bug] win32: open raw files in binary mode. [RT #30944]

was not complete openfile_raw should be using mode "rb" rather than "r".
This commit is contained in:
Mark Andrews
2013-01-09 17:06:01 +11:00
parent 36800a2ed2
commit c27c11ff2c
+1 -1
View File
@@ -773,7 +773,7 @@ static isc_result_t
openfile_raw(dns_loadctx_t *lctx, const char *master_file) {
isc_result_t result;
result = isc_stdio_open(master_file, "r", &lctx->f);
result = isc_stdio_open(master_file, "rb", &lctx->f);
if (result != ISC_R_SUCCESS && result != ISC_R_FILENOTFOUND) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"isc_stdio_open() failed: %s",