From: Ralph Corderoy Date: Sun, 23 Oct 2016 23:02:33 +0000 (+0100) Subject: Use LEN() to save having to consider the -1. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/6218e611276b20b9154bc61eaaf93d9ac0c75d92?ds=sidebyside Use LEN() to save having to consider the -1. --- diff --git a/sbr/oauth.c b/sbr/oauth.c index aef18ba4..0cda2bfa 100755 --- a/sbr/oauth.c +++ b/sbr/oauth.c @@ -196,7 +196,7 @@ static boolean is_json(const char *content_type) { return content_type != NULL - && strncasecmp(content_type, JSON_TYPE, sizeof JSON_TYPE - 1) == 0; + && strncasecmp(content_type, JSON_TYPE, LEN(JSON_TYPE)) == 0; } static void