Fix out of bounds read in sign_group_ref

This commit is contained in:
Andrej Zieger 2019-05-25 11:51:13 +02:00
parent 237cecd81b
commit 897431c486

View File

@ -91,7 +91,7 @@ static signgroup_T * sign_group_ref(const char_u *groupname)
signgroup_T *group;
hash = hash_hash(groupname);
hi = hash_lookup(&sg_table, (char*)S_LEN(groupname), hash);
hi = hash_lookup(&sg_table, (char*)groupname, STRLEN(groupname), hash);
if (HASHITEM_EMPTY(hi))
{
// new group