Include null terminator in strncmp

This commit is contained in:
friedkeenan 2019-09-02 13:08:30 -05:00 committed by GitHub
parent 799faa848b
commit a76351d02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ static romfs_mount *romfsFindMount(const char *name)
} }
else if(mount->setup) //Find the mount with the input 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; return mount;
} }
} }