diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 4365264e9..d6eacf33b 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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;