Require whole mount name to match when finding a romfs (#324)

This commit is contained in:
friedkeenan 2019-09-02 14:22:49 -05:00 committed by fincs
parent 4f74aa1ad1
commit fdb1605fc5

View File

@ -170,7 +170,7 @@ static romfs_mount *romfsFindMount(const char *name)
}
else if(mount->setup) //Find the mount with the input name.
{
if(strncmp(mount->name, name, strlen(mount->name))==0)
if(strncmp(mount->name, name, sizeof(mount->name))==0)
return mount;
}
}