Don't call strlen to get max len of an uninit string
CID #731721
CID #731722
svn path=/trunk/; revision=62652
{
/* 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;
}