[syslinux] [syslinux:master] isohybrid: Function to write UTF-16LE strings
H. Peter Anvin
hpa at zytor.com
Mon Jun 23 21:23:31 PDT 2014
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.
-hpa
More information about the Syslinux
mailing list