]> diplodocus.org Git - nmh/blobdiff - sbr/oauth.c
Clarify trunccpy()'s src and dest must not overlap.
[nmh] / sbr / oauth.c
index aef18ba4f59315668d787bc4266a3e2f36e906c5..0cda2bfa0c9e2d00b8086d1644fd22ea258b75b0 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