aboutsummaryrefslogtreecommitdiff
path: root/src/colors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/colors.c')
-rw-r--r--src/colors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colors.c b/src/colors.c
index 5d929a88..dcb147e3 100644
--- a/src/colors.c
+++ b/src/colors.c
@@ -201,7 +201,7 @@ static const struct key {
#endif
};
-#define NCOLORS (sizeof(color_keyword) / sizeof(struct key))
+#define NCOLORS (sizeof(color_keyword) / sizeof(color_keyword[0]))
/*
* Parse a color in hex (RRGGBB) or (RGB)