summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: