Add new documentation
[blerg.git] / 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();
-       } 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);