aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index b73f1d6da..c50b31d67 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -878,7 +878,7 @@ static void showfiles(void)
878 878
879 /* find the longest file name - use that as the column width */ 879 /* find the longest file name - use that as the column width */
880 for (row = 0; row < nrows; row++) { 880 for (row = 0; row < nrows; row++) {
881 l = bb_mbstrlen(matches[row]); 881 l = unicode_strlen(matches[row]);
882 if (column_width < l) 882 if (column_width < l)
883 column_width = l; 883 column_width = l;
884 } 884 }
@@ -898,7 +898,7 @@ static void showfiles(void)
898 898
899 for (nc = 1; nc < ncols && n+nrows < nfiles; n += nrows, nc++) { 899 for (nc = 1; nc < ncols && n+nrows < nfiles; n += nrows, nc++) {
900 printf("%s%-*s", matches[n], 900 printf("%s%-*s", matches[n],
901 (int)(column_width - bb_mbstrlen(matches[n])), "" 901 (int)(column_width - unicode_strlen(matches[n])), ""
902 ); 902 );
903 } 903 }
904 puts(matches[n]); 904 puts(matches[n]);