Skip to content

Commit

Permalink
Merge pull request #2466 from flx42/fix-define-argument
Browse files Browse the repository at this point in the history
 confile: fix incorrect strncmp
  • Loading branch information
brauner committed Jul 14, 2018
2 parents 5c78431 + 85d4987 commit 94fd0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile.c
Expand Up @@ -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;
Expand Down

0 comments on commit 94fd0bd

Please sign in to comment.