projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
win32 fix
[qemu]
/
slirp
/
tftp.c
diff --git
a/slirp/tftp.c
b/slirp/tftp.c
index
9052662
..
c9946d6
100644
(file)
--- a/
slirp/tftp.c
+++ b/
slirp/tftp.c
@@
-103,7
+103,7
@@
static int tftp_read_data(struct tftp_session *spt, u_int16_t block_nr,
int fd;
int bytes_read = 0;
- fd = open(spt->filename, O_RDONLY);
+ fd = open(spt->filename, O_RDONLY | O_BINARY);
if (fd < 0) {
return -1;