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

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Serge Hallyn 2014-06-18 16:26:49 -05:00
parent 4184c3e172
commit 3dbcf8b27b

View File

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