]> diplodocus.org Git - nmh/commitdiff
Use LEN() to save having to consider the -1.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 23 Oct 2016 23:02:33 +0000 (00:02 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 24 Oct 2016 09:18:56 +0000 (10:18 +0100)
sbr/oauth.c

index aef18ba..0cda2bf 100755 (executable)
@@ -196,7 +196,7 @@ static boolean
 is_json(const char *content_type)
 {
     return content_type != NULL
 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
 }
 
 static void