Commit 3d6b0812 authored by Philip Carns's avatar Philip Carns
Browse files

small memory bug fix

make string long enough for two chars and terminator
parent b7c40597
......@@ -36,7 +36,7 @@ int parse_size(char *str, size_t *size_out)
const char *suffixes[] = { "B", "K", "M", "G", "T", "P" };
size_t size_mults[] = { 1ULL, 1ULL << 10, 1ULL << 20, 1ULL << 30, 1ULL << 40, 1ULL << 50 };
size_t size;
char suff[2] = {0};
char suff[3] = {0};
int i;
int ret;
......
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