1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Fix removal of color pair number in a string (function gui_color_decode)

This commit is contained in:
Sebastien Helleu
2010-12-20 11:42:26 +01:00
parent cd7a02bec5
commit e17e5a9614
+3 -3
View File
@@ -323,9 +323,9 @@ gui_color_decode (const char *string, const char *replacement)
ptr_string += 6;
break;
case GUI_COLOR_PAIR_CHAR:
if ((isdigit (string[1])) && (isdigit (string[2]))
&& (isdigit (string[3])) && (isdigit (string[4]))
&& (isdigit (string[5])))
if ((isdigit (ptr_string[1])) && (isdigit (ptr_string[2]))
&& (isdigit (ptr_string[3])) && (isdigit (ptr_string[4]))
&& (isdigit (ptr_string[5])))
ptr_string += 6;
break;
case GUI_COLOR_BAR_CHAR: