Skip to content
Snippets Groups Projects
Commit c5154c04 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix buffer size in test/unit/uuid.c

Out buffer, must be at least UUID_STR_LEN + 1 length.
parent 49a8f216
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@
static void
uuid_test(struct tt_uuid a, struct tt_uuid b, int expected_result)
{
char a_str[UUID_STR_LEN];
char b_str[UUID_STR_LEN];
char a_str[UUID_STR_LEN + 1];
char b_str[UUID_STR_LEN + 1];
tt_uuid_to_string(&a, a_str);
tt_uuid_to_string(&b, b_str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment