X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=column.c;h=fbf88639aaed931602b203f012468cdeefda284f;hb=9db05711c98efc14f414d4c87135a34c13586e0b;hp=1261e18a72e9727e6d4e530e7068ffb319f59548;hpb=839129c6d879c1ac51e6310909579a0352e87801;p=thirdparty%2Fgit.git diff --git a/column.c b/column.c index 1261e18a72..fbf88639aa 100644 --- a/column.c +++ b/column.c @@ -23,7 +23,7 @@ struct column_data { /* return length of 's' in letters, ANSI escapes stripped */ static int item_length(const char *s) { - return utf8_strnwidth(s, -1, 1); + return utf8_strnwidth(s, strlen(s), 1); } /*