Skip to content
Snippets Groups Projects
Commit 365de347 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Merge branch 'cc_warnings' into 'master'

test_journal: correct potential for truncation in snprintf

See merge request knot/knot-dns!1701
parents dfbed360 dc9fe786
Branches
Tags
1 merge request!1701test_journal: correct potential for truncation in snprintf
Pipeline #129023 passed with stages
in 13 minutes and 40 seconds
......@@ -557,7 +557,7 @@ static knot_dname_t *tm_owner(const char *prefix, const knot_dname_t *apex)
static knot_dname_t *tm_owner_int(int x, const knot_dname_t *apex)
{
char buf[12] = { 0 };
char buf[13] = { 0 };
(void)snprintf(buf, sizeof(buf), "i%d", x);
return tm_owner(buf, apex);
}
......
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