mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
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:
1 parent
2bb4fb47e8
commit
828a27686e
4 files changed
+11
-6
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user