diff options
author | MAntoniak <47522782+MAntoniak@users.noreply.github.com> | 2022-02-20 15:16:07 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-02-21 08:18:59 +0100 |
commit | 9fff7feb826fd912dd59e582b6e5f175e9bf4ba5 (patch) | |
tree | 199628d684d90376c65381e81bce56ecd9c75b2f /lib/strcase.h | |
parent | d60fa59b916d96603857180fb88a53678f539d6c (diff) | |
download | curl-9fff7feb826fd912dd59e582b6e5f175e9bf4ba5.tar.gz |
checkprefix: remove strlen calls
Closes #8481
Diffstat (limited to 'lib/strcase.h')
-rw-r--r-- | lib/strcase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strcase.h b/lib/strcase.h index bbd6cd85d..b628656b9 100644 --- a/lib/strcase.h +++ b/lib/strcase.h @@ -41,8 +41,8 @@ int Curl_strncasecompare(const char *first, const char *second, size_t max); char Curl_raw_toupper(char in); /* checkprefix() is a shorter version of the above, used when the first - argument is zero-byte terminated */ -#define checkprefix(a,b) curl_strnequal(a,b,strlen(a)) + argument is the string literal */ +#define checkprefix(a,b) curl_strnequal(b, STRCONST(a)) void Curl_strntoupper(char *dest, const char *src, size_t n); void Curl_strntolower(char *dest, const char *src, size_t n); |