diff options
Diffstat (limited to 'src/header.c')
| -rw-r--r-- | src/header.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/header.c b/src/header.c index f3072ad..29e87f7 100644 --- a/src/header.c +++ b/src/header.c @@ -59,10 +59,8 @@ static int strieq(const char *a, const char *b) { - while (*a) - if (tolower(*a) != tolower(*b)) - return 0; - return 1; + while (*a && tolower(*a) == tolower(*b)) ++a, ++b; + return tolower(*a) == tolower(*b); } #define CHECK() \ |