2008-04-01 Pavel Roskin <proski@gnu.org>
* util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The later is obsolete, potentially dangerous and sets a bad example. * util/i386/efi/grub-mkimage.c (make_header): Likewise. * util/misc.c (grub_util_get_image_size): Likewise.
This commit is contained in:
parent
2bb4fb47e8
commit
828a27686e
4 changed files with 11 additions and 6 deletions
|
@ -829,7 +829,7 @@ make_header (FILE *out, Elf32_Addr text_address, Elf32_Addr data_address,
|
|||
| GRUB_PE32_SCN_MEM_READ);
|
||||
|
||||
/* Write them out. */
|
||||
if (fseek (out, 0, SEEK_SET) < 0)
|
||||
if (fseeko (out, 0, SEEK_SET) < 0)
|
||||
grub_util_error ("seek failed");
|
||||
|
||||
if (fwrite (&header, sizeof (header), 1, out) != 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue