Commit 3dbcf8b2 by Serge Hallyn

confile: fix a typo (s/len/str/) in my previous patch

parent 4184c3e1
...@@ -1651,7 +1651,7 @@ static int store_martian_option(char *line, void *data) ...@@ -1651,7 +1651,7 @@ static int store_martian_option(char *line, void *data)
return -1; return -1;
} }
strncpy(str, line, len); strncpy(str, line, len);
len[len] = '\0'; str[len] = '\0';
list->elem = str; list->elem = str;
lxc_list_add_tail(&conf->aliens, list); lxc_list_add_tail(&conf->aliens, list);
return 0; return 0;
......
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