Mercurial > hg
changeset 1168:eb05f960613f
Fix UTF-8 group names in the roster (Myhailo Danylenko)
Long names were truncated by snprintf, possibly at a wrong position.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 22 Feb 2007 22:10:19 +0100 |
parents | 9726c78a91f3 |
children | 36450491b884 |
files | mcabber/src/screen.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 = ']';