mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-26 07:15:03 +02:00
fix OW warning W115 in config.c
This commit is contained in:
parent
af52b0c8c3
commit
6f6e44e1b5
@ -1619,7 +1619,7 @@ err:printf("%s has invalid format\n", filename);
|
|||||||
if (lseek(fd, entry.offset) == 0xffffffffL
|
if (lseek(fd, entry.offset) == 0xffffffffL
|
||||||
|| read(fd, &count, sizeof(count)) != sizeof(count)
|
|| read(fd, &count, sizeof(count)) != sizeof(count)
|
||||||
|| count > LENGTH(hdr)
|
|| count > LENGTH(hdr)
|
||||||
|| read(fd, &hdr, sizeof(struct subf_hdr) * count)
|
|| read(fd, hdr, sizeof(struct subf_hdr) * count)
|
||||||
!= sizeof(struct subf_hdr) * count)
|
!= sizeof(struct subf_hdr) * count)
|
||||||
goto err;
|
goto err;
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user