]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-ls: count spaces 852/head
authorChristian Brauner <christian.brauner@mailbox.org>
Fri, 26 Feb 2016 10:18:47 +0000 (11:18 +0100)
committerChristian Brauner <christian.brauner@mailbox.org>
Fri, 26 Feb 2016 10:20:40 +0000 (11:20 +0100)
Otherwise line wrapping might occur too late.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
src/lxc/lxc_ls.c

index 26d4a74e5f5d6c3f007b25a08e7f48627b87b047..1a9969aa8659e2ee216ef2a897dc0bc9dffa0cba 100644 (file)
@@ -756,6 +756,7 @@ static void ls_print_names(struct ls *l, struct lengths *lht,
                        len = 0;
                } else {
                        printf(" ");
+                       len++;
                }
        }
        if (len > 0)