diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-05-26 13:58:42 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2012-05-26 13:58:42 +0200 |
commit | 366fe274ebb7b318fe042b3ab2e60bd81179f43e (patch) | |
tree | 711df5c4f9e1e5f95a39edc0232cee19252286b5 /src/colors.c | |
parent | da02f4ca35ba0346ad1826bab87042f39660f0c0 (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.c | 2 |
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) |