Commit 207bbfde authored by Kishen Maloor's avatar Kishen Maloor

oc_introspection: fix overrun

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 05566026
Pipeline #556 passed with stage
in 6 minutes and 17 seconds
......@@ -42,7 +42,7 @@ gen_idd_tag(const char *name, size_t device_index, char *idd_tag)
snprintf(idd_tag, MAX_TAG_LENGTH, "%s_%zd", name, device_index);
idd_tag_len =
(idd_tag_len < MAX_TAG_LENGTH) ? idd_tag_len + 1 : MAX_TAG_LENGTH;
idd_tag[idd_tag_len] = '\0';
idd_tag[idd_tag_len - 1] = '\0';
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment