From 6218e611276b20b9154bc61eaaf93d9ac0c75d92 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 24 Oct 2016 00:02:33 +0100 Subject: [PATCH] Use LEN() to save having to consider the -1. --- sbr/oauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.56.0