ne2000 savevm support (Johannes Schindelin)
[qemu] / hw / pc.c
diff --git a/hw/pc.c b/hw/pc.c
index f59ea23..305ea1f 100644 (file)
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -283,7 +283,7 @@ int load_kernel(const char *filename, uint8_t *addr,
     int fd, size;
     int setup_sects;
 
-    fd = open(filename, O_RDONLY);
+    fd = open(filename, O_RDONLY | O_BINARY);
     if (fd < 0)
         return -1;