From a76351d02c9b66857a2f49a7bb16dc60414d6692 Mon Sep 17 00:00:00 2001 From: friedkeenan Date: Mon, 2 Sep 2019 13:08:30 -0500 Subject: [PATCH] Include null terminator in strncmp --- 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 2c105aef..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, sizeof(mount->name)-1)==0) + if(strncmp(mount->name, name, sizeof(mount->name))==0) return mount; } }