Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
IOPSYS
map-topology
Commits
14083b59
Commit
14083b59
authored
Nov 23, 2021
by
Jakob Olsson
Browse files
append after strlen, not sizeof
parent
71386dfe
Pipeline
#35358
passed with stages
in 1 minute and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/host_config.c
View file @
14083b59
...
...
@@ -119,7 +119,7 @@ struct uci_section *config_add_section(struct uci_context *ctx,
/* walk through other tokens */
while
(
token
!=
NULL
)
{
snprintf
(
name_section
+
s
izeof
(
name_section
),
snprintf
(
name_section
+
s
trlen
(
name_section
),
sizeof
(
name_section
),
"%s%s"
,
name_section
,
token
);
token
=
strtok
(
NULL
,
s
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment