summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-21 17:17:33 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-21 17:17:33 -0700
commitf3006fdf98b5b5bf614d06075b79cea7ff7f3793 (patch)
tree4151055c341ec78832aa8fd7339492c33c8c6624 /utils
parent8659757a388ad9071156f2e3d6b04813960dcfed (diff)
downloadsyslinux-f3006fdf98b5b5bf614d06075b79cea7ff7f3793.tar.gz
isohybrid: fix beginner mistakes
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/isohybrid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index 4e504b93..2ceeb346 100644
--- a/utils/isohybrid.c
+++ b/utils/isohybrid.c
@@ -401,7 +401,7 @@ display_mbr(const uint8_t *mbr, size_t len)
unsigned char c = 0;
unsigned int i = 0, j = 0;
- printf("sizeof(MBR): %d bytes\n", len);
+ printf("sizeof(MBR): %zu bytes\n", len);
for (i = 0; i < len; i++)
{
if (!(i % 16))
@@ -514,7 +514,7 @@ main(int argc, char *argv[])
if (fseek(fp, 440, SEEK_SET))
err(1, "%s: seek error - 4", argv[0]);
- fscanf(fp, "%4c", &id);
+ fread(&id, 4, 1, fp);
id = lendian_int(id);
if (!id)
{