aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/unicode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbb/unicode.c b/libbb/unicode.c
index 70c6abe00..cf0c6bed9 100644
--- a/libbb/unicode.c
+++ b/libbb/unicode.c
@@ -1005,8 +1005,11 @@ static char* FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char
1005 d++; 1005 d++;
1006 } 1006 }
1007 } 1007 }
1008 if (stats) 1008 if (stats) {
1009 stats->byte_count = stats->unicode_count = (d - dst); 1009 stats->byte_count = (d - dst);
1010 stats->unicode_count = (d - dst);
1011 stats->unicode_width = (d - dst);
1012 }
1010 return dst; 1013 return dst;
1011 } 1014 }
1012 1015