From e17e5a96145b3f6337bceaa4b2b06a26ee79d0c8 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 20 Dec 2010 11:42:26 +0100 Subject: Fix removal of color pair number in a string (function gui_color_decode) --- src/gui/gui-color.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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: -- cgit v1.2.3