summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-12-20 11:42:26 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-12-20 11:42:26 +0100
commite17e5a96145b3f6337bceaa4b2b06a26ee79d0c8 (patch)
treef733465ef16e16164de038f52655cae21f6784a1 /src/gui
parentcd7a02bec5ce87e8e1aa26b9fffc3caa0cda8ae8 (diff)
downloadweechat-e17e5a96145b3f6337bceaa4b2b06a26ee79d0c8.zip
Fix removal of color pair number in a string (function gui_color_decode)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-color.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/gui-color.c b/src/gui/gui-color.c
index acbf18e66..b875e4b68 100644
--- a/src/gui/gui-color.c
+++ b/src/gui/gui-color.c
@@ -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: