Commit 14083b59 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

append after strlen, not sizeof

parent 71386dfe
Pipeline #35358 passed with stages
in 1 minute and 26 seconds
......@@ -119,7 +119,7 @@ struct uci_section *config_add_section(struct uci_context *ctx,
/* walk through other tokens */
while (token != NULL) {
snprintf(name_section + sizeof(name_section),
snprintf(name_section + strlen(name_section),
sizeof(name_section), "%s%s", name_section, token);
token = strtok(NULL, s);
}
......
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