Merge from vendor branch TNF:
[pkgsrcv2.git] / chat / bitchx / patches / patch-ad
1 $NetBSD$
2
3 --- source/screen.c.orig        2003-07-31 07:01:08.000000000 +0000
4 +++ source/screen.c
5 @@ -2974,6 +2974,8 @@ static    char    retbuf[512];
6  
7         if (back == 58)
8                 strcat(retbuf, current_term->TI_sgrstrs[TERM_SGR_BLINK_ON - 1]);
9 +       if (fore > 57)
10 +               fore = last_fore;
11         if (fore > -1)
12                 strcat(retbuf, current_term->TI_forecolors[fore_conv[fore]]);
13         if (back > -1 && back < 58)