diff options
| author | Nakidai <nakidai@disroot.org> | 2024-11-30 09:57:52 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2024-11-30 09:57:52 +0300 |
| commit | c296cef100e8bbe39fff1f7a4316ecbe961787d7 (patch) | |
| tree | c46f121b28e09edee8c662225e6100ae1f6f75b5 /src/header.c | |
| parent | c5b72909811b8075bf9ccbfce7459f00c44cd46a (diff) | |
| download | libhttpc-c296cef100e8bbe39fff1f7a4316ecbe961787d7.tar.gz libhttpc-c296cef100e8bbe39fff1f7a4316ecbe961787d7.zip | |
Fix strieq
Thanks @neirokan for helping with this
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() \ |