Whoops, checking too many bytes for /subscribe
authorChip Black <bytex64@bytex64.net>
Sun, 27 Feb 2011 10:50:25 +0000 (04:50 -0600)
committerChip Black <bytex64@bytex64.net>
Sun, 27 Feb 2011 10:50:25 +0000 (04:50 -0600)
cgi/cgi_blerg.c

index 1bba24d..664d6a5 100644 (file)
@@ -329,8 +329,7 @@ int main(int argc, char *argv[]) {
 
                auth_logout(username);
                respond_JSON_Success();
 
                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);
                const char *username = cgi_getentrystr("username");
                if (!check_auth(username))
                        exit(0);