From: Chip Black Date: Sun, 27 Feb 2011 10:50:25 +0000 (-0600) Subject: Whoops, checking too many bytes for /subscribe X-Git-Tag: v1.5~18 X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;ds=sidebyside;h=d7b13cb4340b4a9c182962c7d451faecbe0948ab;p=blerg.git Whoops, checking too many bytes for /subscribe --- diff --git a/cgi/cgi_blerg.c b/cgi/cgi_blerg.c index 1bba24d..664d6a5 100644 --- a/cgi/cgi_blerg.c +++ b/cgi/cgi_blerg.c @@ -329,8 +329,7 @@ int main(int argc, char *argv[]) { auth_logout(username); respond_JSON_Success(); - } else if (strncmp(path, "/subscribe", 11) == 0 || strncmp(path, "/unsubscribe", 13) == 0) { - + } else if (strncmp(path, "/subscribe", 10) == 0 || strncmp(path, "/unsubscribe", 12) == 0) { const char *username = cgi_getentrystr("username"); if (!check_auth(username)) exit(0);