Fix capability_index_list(), used e.g. in /stats ? capability output.
This commit is contained in:
parent
89fd463e59
commit
33b214fa42
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ capability_index_list(struct CapabilityIndex *idx, unsigned int cap_mask)
|
|||
|
||||
DICTIONARY_FOREACH(entry, &iter, idx->cap_dict)
|
||||
{
|
||||
if (entry->value & cap_mask)
|
||||
if ((1 << entry->value) & cap_mask)
|
||||
{
|
||||
tl = rb_sprintf(t, "%s ", entry->cap);
|
||||
t += tl;
|
||||
|
|
Loading…
Reference in a new issue