Commit d2b2bbc6 authored by Philip Carns's avatar Philip Carns
Browse files

minor memory bug fix in mkpool routine

- scanf string field width modifier does not count null terminator
parent 8ab84eed
......@@ -40,7 +40,7 @@ int parse_size(char *str, size_t *size_out)
int i;
int ret;
ret = sscanf(str, "%zu%2s", &size, suff);
ret = sscanf(str, "%zu%1s", &size, suff);
if(ret == 1)
*size_out = size;
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