[syslinux] [syslinux:master] isohybrid: Function to write UTF-16LE strings
Geert Stappers
stappers at stappers.nl
Mon Jun 23 21:41:23 PDT 2014
Op 2014-06-23 om 21:23 schreef H. Peter Anvin:
> On 06/23/2014 09:19 PM, Geert Stappers wrote:
> >> diff --git a/utils/isohybrid.c b/utils/isohybrid.c
> >> index 0011b78..e308a82 100644
> >> --- a/utils/isohybrid.c
> >> +++ b/utils/isohybrid.c
> >> @@ -593,7 +593,7 @@ read_mbr_template(char *path, uint8_t *mbr)
> >> err(1, "could not open MBR template file `%s'", path);
> >> clearerr(fp);
> >> ret = fread(mbr, 1, MBRSIZE, fp);
> >> - if (ferror(fp))
> >> + if (ferror(fp) || ret != MBRSIZE)
> >> err(1, "error while reading MBR template file `%s'", path);
> >> fclose(fp);
> >> }
> >
> > Shouldn't that be in a separate commit?
> >
>
> Yes, it really should have been.
>
git commit --amend
to amend the last commit message
Groeten
Geert Stappers
--
Leven en laten leven
More information about the Syslinux
mailing list