]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: fix a typo (s/len/str/) in my previous patch
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 18 Jun 2014 21:26:49 +0000 (16:26 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 18 Jun 2014 21:27:18 +0000 (16:27 -0500)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/confile.c

index 32f08c7fb4493285dd34ce9f637b6b153b70a407..9ecda6a3125724ea68ea743a5414081f9437e168 100644 (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;