aboutsummaryrefslogtreecommitdiff
path: root/src/colors.c
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-05-26 13:58:42 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-05-26 13:58:42 +0200
commit366fe274ebb7b318fe042b3ab2e60bd81179f43e (patch)
tree711df5c4f9e1e5f95a39edc0232cee19252286b5 /src/colors.c
parentda02f4ca35ba0346ad1826bab87042f39660f0c0 (diff)
unify use of sizeof() when computing array length
Submitted by: 123 <p37sitdu@lavabit.com>
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)