The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/852

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Otherwise line wrapping might occur too late.

Signed-off-by: Christian Brauner <christian.brau...@mailbox.org>
From fb9d69f27fa8aa5bad5bde1a46f868d75241a6f5 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brau...@mailbox.org>
Date: Fri, 26 Feb 2016 11:18:47 +0100
Subject: [PATCH] lxc-ls: count spaces

Otherwise line wrapping might occur too late.

Signed-off-by: Christian Brauner <christian.brau...@mailbox.org>
---
 src/lxc/lxc_ls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lxc/lxc_ls.c b/src/lxc/lxc_ls.c
index 26d4a74..1a9969a 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)
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to