--- /home/walter/src/bbs100-2.1/src/util.c 2004-02-01 12:13:58.000000000 +0100 +++ src/util.c 2004-06-28 22:13:19.000000000 +0200 @@ -466,12 +466,15 @@ } int color_strlen(char *str) { -int len = 0; +int len = 0, i; while(*str) { - if (*str == '<') - str += skip_long_color_code(str); - else { + if (*str == '<') { + i = skip_long_color_code(str); + if (i == 1) + len++; + str += i; + } else { if (*str >= ' ' && *str <= '~') len++; str++;