# HG changeset patch # User Mikael Berthe # Date 1172178619 -3600 # Node ID eb05f960613f1212f698eb5fdba38885219edbbb # Parent 9726c78a91f38aeaf86463d0d9c04901b6860957 Fix UTF-8 group names in the roster (Myhailo Danylenko) Long names were truncated by snprintf, possibly at a wrong position. diff -r 9726c78a91f3 -r eb05f960613f mcabber/src/screen.c --- a/mcabber/src/screen.c Sun Feb 18 11:03:49 2007 +0100 +++ b/mcabber/src/screen.c Thu Feb 22 22:10:19 2007 +0100 @@ -1287,9 +1287,9 @@ sep = "+++"; else sep = "---"; - snprintf(rline, Roster_Width, " %c%s %s", pending, sep, name); + snprintf(rline, 4*Roster_Width, " %c%s %s", pending, sep, name); } else if (isspe) { - snprintf(rline, Roster_Width, " %c%s", pending, name); + snprintf(rline, 4*Roster_Width, " %c%s", pending, name); } else { char sepleft = '['; char sepright = ']';