aboutsummaryrefslogtreecommitdiff
path: root/tool/sqlite3_rsync.c
diff options
context:
space:
mode:
authordrh <>2024-10-22 09:43:27 +0000
committerdrh <>2024-10-22 09:43:27 +0000
commit49f293ba581fc54f14348c01114ecf1ff95df26c (patch)
tree0e61a6786fdcdf373241b627e76c76f28e73c9b2 /tool/sqlite3_rsync.c
parent0d7ede8d1c90c9781136e6f6e6d48f556c98f288 (diff)
downloadsqlite-49f293ba581fc54f14348c01114ecf1ff95df26c.tar.gz
sqlite-49f293ba581fc54f14348c01114ecf1ff95df26c.zip
Set I/O mode to binary in Windows in sqlite3_rsync.
FossilOrigin-Name: 67175287440cf363df01bed2464122c3b686a82ea82aeecd3f45fe90c359495c
Diffstat (limited to 'tool/sqlite3_rsync.c')
-rw-r--r--tool/sqlite3_rsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/sqlite3_rsync.c b/tool/sqlite3_rsync.c
index ae8107c8c..9f7c302cb 100644
--- a/tool/sqlite3_rsync.c
+++ b/tool/sqlite3_rsync.c
@@ -240,9 +240,9 @@ static int popen2(
hStdinRd, hStdoutWr, hStderr,&childPid);
*pChildPid = childPid;
fd = _open_osfhandle(PTR_TO_INT(hStdoutRd), 0);
- *ppIn = fdopen(fd, "r");
+ *ppIn = fdopen(fd, "rb");
fd = _open_osfhandle(PTR_TO_INT(hStdinWr), 0);
- *ppOut = _fdopen(fd, "w");
+ *ppOut = _fdopen(fd, "wb");
CloseHandle(hStdinRd);
CloseHandle(hStdoutWr);
return 0;