Unverified Commit 94fd0bd6 by Christian Brauner Committed by GitHub

Merge pull request #2466 from flx42/fix-define-argument

confile: fix incorrect strncmp
parents 5c784312 85d49873
......@@ -2402,7 +2402,7 @@ static struct new_config_item *parse_new_conf_line(char *buffer)
line += lxc_char_left_gc(line, strlen(line));
/* martian option - don't add it to the config itself */
if (strncmp(line, "lxc.", strlen(line)))
if (strncmp(line, "lxc.", 4))
goto on_error;
ret = -1;
......
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