From: Christian Brauner Date: Fri, 26 Feb 2016 10:18:47 +0000 (+0100) Subject: lxc-ls: count spaces X-Git-Tag: lxc-2.0.0.rc4~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F852%2Fhead;p=thirdparty%2Flxc.git lxc-ls: count spaces Otherwise line wrapping might occur too late. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxc_ls.c b/src/lxc/lxc_ls.c index 26d4a74e5..1a9969aa8 100644 --- a/src/lxc/lxc_ls.c +++ b/src/lxc/lxc_ls.c @@ -756,6 +756,7 @@ static void ls_print_names(struct ls *l, struct lengths *lht, len = 0; } else { printf(" "); + len++; } } if (len > 0)