Commit bc5a1006 authored by George Nash's avatar George Nash

oc_uuid_to_str terminates the string with nul ('\0')

Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
parent 207bbfde
Pipeline #555 passed with stage
in 6 minutes and 4 seconds
......@@ -106,6 +106,7 @@ oc_uuid_to_str(const oc_uuid_t *uuid, char *buffer, int buflen)
snprintf(&buffer[j], 3, "%02x", uuid->id[i]);
j += 2;
}
buffer[OC_UUID_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