mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
Include null terminator in strncmp
This commit is contained in:
parent
799faa848b
commit
a76351d02c
@ -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, sizeof(mount->name)-1)==0)
|
||||
if(strncmp(mount->name, name, sizeof(mount->name))==0)
|
||||
return mount;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user