From 3dbcf8b27bf3886d362564cf7d5eb3fcbd48329f Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Wed, 18 Jun 2014 16:26:49 -0500 Subject: [PATCH] confile: fix a typo (s/len/str/) in my previous patch Signed-off-by: Serge Hallyn --- src/lxc/confile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 32f08c7fb..9ecda6a31 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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;