diff --git a/nx/source/runtime/devices/romfs_dev.c b/nx/source/runtime/devices/romfs_dev.c index 85940792..ae539227 100644 --- a/nx/source/runtime/devices/romfs_dev.c +++ b/nx/source/runtime/devices/romfs_dev.c @@ -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; } }