diff mcabber/src/screen.c @ 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 14f5876b5555
children 29f805d8412f
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 = ']';