Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
bake
Commits
d2b2bbc6
Commit
d2b2bbc6
authored
Jan 13, 2021
by
Philip Carns
Browse files
minor memory bug fix in mkpool routine
- scanf string field width modifier does not count null terminator
parent
8ab84eed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bake-mkpool.c
View file @
d2b2bbc6
...
...
@@ -40,7 +40,7 @@ int parse_size(char *str, size_t *size_out)
int
i
;
int
ret
;
ret
=
sscanf
(
str
,
"%zu%
2
s"
,
&
size
,
suff
);
ret
=
sscanf
(
str
,
"%zu%
1
s"
,
&
size
,
suff
);
if
(
ret
==
1
)
{
*
size_out
=
size
;
...
...
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