* 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-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.
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 *