comparison 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
comparison
equal deleted inserted replaced
1167:9726c78a91f3 1168:eb05f960613f
1285 char *sep; 1285 char *sep;
1286 if (ishid) 1286 if (ishid)
1287 sep = "+++"; 1287 sep = "+++";
1288 else 1288 else
1289 sep = "---"; 1289 sep = "---";
1290 snprintf(rline, Roster_Width, " %c%s %s", pending, sep, name); 1290 snprintf(rline, 4*Roster_Width, " %c%s %s", pending, sep, name);
1291 } else if (isspe) { 1291 } else if (isspe) {
1292 snprintf(rline, Roster_Width, " %c%s", pending, name); 1292 snprintf(rline, 4*Roster_Width, " %c%s", pending, name);
1293 } else { 1293 } else {
1294 char sepleft = '['; 1294 char sepleft = '[';
1295 char sepright = ']'; 1295 char sepright = ']';
1296 if (btype & ROSTER_TYPE_USER) { 1296 if (btype & ROSTER_TYPE_USER) {
1297 guint subtype = buddy_getsubscription(BUDDATA(buddy)); 1297 guint subtype = buddy_getsubscription(BUDDATA(buddy));