Commit fd748718 by Christian Brauner Committed by Stéphane Graber

Fix reallocation calculation

parent d8b1be98
......@@ -53,7 +53,7 @@ static int my_parser(struct lxc_arguments* args, int c, char* arg)
char **newk;
switch (c) {
case 'c':
newk = realloc(key, keys+1 * sizeof(key[0]));
newk = realloc(key, (keys + 1) * sizeof(key[0]));
if (!newk)
return -1;
key = newk;
......
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