mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Require whole mount name to match when finding a romfs (#324)
This commit is contained in:
parent
4f74aa1ad1
commit
fdb1605fc5
@ -170,7 +170,7 @@ static romfs_mount *romfsFindMount(const char *name)
|
|||||||
}
|
}
|
||||||
else if(mount->setup) //Find the mount with the input 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;
|
return mount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user