From 799faa848b48473579cf447d80f1a7775d1a691c Mon Sep 17 00:00:00 2001 From: friedkeenan Date: Sun, 1 Sep 2019 19:54:45 -0500 Subject: [PATCH] Require whole mount name to match when finding a romfs --- 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..2c105aef 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)-1)==0) return mount; } }