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.
This commit is contained in:
marco_g 2005-01-05 13:33:16 +00:00
parent 0b412211b3
commit 4ca7004c3e
2 changed files with 9 additions and 1 deletions

View file

@ -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> 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
* TODO: Add note about endianness in grub-mkimage. * TODO: Add note about endianness in grub-mkimage.

View file

@ -200,7 +200,9 @@ grub_util_write_image_at (const void *img, size_t size, off_t offset, FILE *out)
void void
grub_util_write_image (const char *img, size_t size, FILE *out) 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 * void *