projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8659757
)
isohybrid: fix beginner mistakes
author
H. Peter Anvin
<hpa@linux.intel.com>
Tue, 22 Jun 2010 00:17:33 +0000
(17:17 -0700)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Tue, 22 Jun 2010 00:17:33 +0000
(17:17 -0700)
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
utils/isohybrid.c
patch
|
blob
|
history
diff --git
a/utils/isohybrid.c
b/utils/isohybrid.c
index
4e504b9
..
2ceeb34
100644
(file)
--- 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)
{