From fdb1605fc53d9889d996bd8f93d3edc5248afff5 Mon Sep 17 00:00:00 2001 From: friedkeenan Date: Mon, 2 Sep 2019 14:22:49 -0500 Subject: [PATCH] Require whole mount name to match when finding a romfs (#324) --- nx/source/runtime/devices/romfs_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }