ls: Fix indentation of -Ci and -Cs
authorJan Cybulski <j.cybulski@samsung.com>
Mon, 20 Oct 2014 13:25:58 +0000 (15:25 +0200)
committerJosé Bollo <jose.bollo@open.eurogiciel.org>
Tue, 31 Mar 2015 12:32:25 +0000 (14:32 +0200)
commitee38eb565a0b8fdb8c54b4e45b00b30254287cd4
tree69c428453cbd15af99edb1180ef266a8f00dccc5
parent0960d813f8ac6f8912bdcae146fe3d6994f0c98f
ls: Fix indentation of -Ci and -Cs

Idantation for -C option was not correctly displayed.
The lenght of column has to be calculated on basis of
biggest lenght of all inodes not only current lenght.

What is more lenght of inodes which were bigger than MAX_INT
were incorrect.

Change-Id: I07f994b90c82ac750b8aa63a4146e17773fd2919
Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>
lib/lib.c
toys/posix/ls.c