Skip to content

Commit

Permalink
Fix access to affinity domain tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTheBear committed Nov 15, 2024
1 parent 7ee3196 commit 513fdbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/src/strUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ parse_workgroup(Workgroup* group, const_bstring str, DataType type)

for (int i = 0; i < doms->numberOfAffinityDomains; i++)
{
if (bstrcmp(doms->domains[i].tag, tokens->entry[0]) == BSTR_OK)
if (strncmp(doms->domains[i].tag, bdata(tokens->entry[0]), strlen(doms->domains[i].tag)) == 0)
{
domidx = i;
break;
Expand Down

0 comments on commit 513fdbb

Please sign in to comment.