Fix UTF-8 group names in the roster (Myhailo Danylenko)
authorMikael Berthe <mikael@lilotux.net>
Thu, 22 Feb 2007 22:10:19 +0100
changeset 1168 eb05f960613f
parent 1167 9726c78a91f3
child 1169 36450491b884
Fix UTF-8 group names in the roster (Myhailo Danylenko) Long names were truncated by snprintf, possibly at a wrong position.
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 = ']';