{
/* This is a floppy */
- if (Size <= sizeof(Path) + 7 + strlen(Device))
+ if (Size <= sizeof(Path) + 7 + sizeof(Device))
{
return FALSE;
}
FrldrBootPartition = BootPartition;
- if (Size <= sizeof(Path) + 18 + strlen(Device) + strlen(Partition))
+ if (Size <= sizeof(Path) + 18 + sizeof(Device) + sizeof(Partition))
{
return FALSE;
}
{
/* This is a CD-ROM drive */
- if (Size <= sizeof(Path) + 7 + strlen(Device))
+ if (Size <= sizeof(Path) + 7 + sizeof(Device))
{
return FALSE;
}