]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-01-05 Marco Gerards <metgerards@student.han.nl>
authormarco_g <marco_g@localhost>
Wed, 5 Jan 2005 13:33:16 +0000 (13:33 +0000)
committermarco_g <marco_g@localhost>
Wed, 5 Jan 2005 13:33:16 +0000 (13:33 +0000)
* util/misc.c (grub_util_read_image): Revert last change.  It
called `grub_util_read_at', which seeks from the beginning of the
file.

ChangeLog
util/misc.c

index 9b74ad433f7bed28d6feb5c97c6ea1280754a63d..63579cc75bb10b7e79bd07d58e65ddfa0cceb6a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-05  Marco Gerards  <metgerards@student.han.nl>
+
+       * util/misc.c (grub_util_read_image): Revert last change.  It
+       called `grub_util_read_at', which seeks from the beginning of the
+       file.
+
 2005-01-04  Hollis Blanchard  <hollis@penguinppc.org>
 
        * TODO: Add note about endianness in grub-mkimage.
index 00044727ef9a11a00f5aea2f9441e35a3cce4121..a9dafb7b78411033db5c0ff80b56671de47c9b4c 100644 (file)
@@ -200,7 +200,9 @@ grub_util_write_image_at (const void *img, size_t size, off_t offset, FILE *out)
 void
 grub_util_write_image (const char *img, size_t size, FILE *out)
 {
-  grub_util_write_image_at (img, size, 0, out);
+  grub_util_info ("writing 0x%x bytes", size);
+  if (fwrite (img, 1, size, out) != size)
+    grub_util_error ("write failed");
 }
 
 void *