From: marco_g Date: Wed, 5 Jan 2005 13:33:16 +0000 (+0000) Subject: 2005-01-05 Marco Gerards X-Git-Tag: 1.98~2168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ca7004c3ebbb4aa6e081da9cafddc3f5a267777;p=thirdparty%2Fgrub.git 2005-01-05 Marco Gerards * util/misc.c (grub_util_read_image): Revert last change. It called `grub_util_read_at', which seeks from the beginning of the file. --- diff --git a/ChangeLog b/ChangeLog index 9b74ad433..63579cc75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-05 Marco Gerards + + * 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 * TODO: Add note about endianness in grub-mkimage. diff --git a/util/misc.c b/util/misc.c index 00044727e..a9dafb7b7 100644 --- a/util/misc.c +++ b/util/misc.c @@ -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 *