From e3448992bcc6efc640d31cc9fe67dadb92299940 Mon Sep 17 00:00:00 2001 From: prx Date: Wed, 9 Dec 2020 13:53:21 +0100 Subject: [PATCH] use macro --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 8e135d7..6f0569a 100644 --- a/main.c +++ b/main.c @@ -197,7 +197,7 @@ main(int argc, char **argv) * check if the beginning of the request starts with * gemini:// */ - start_with_gemini = strncmp(request, "gemini://", 9); + start_with_gemini = strncmp(request, "gemini://", GEMINI_PART); /* the request must start with gemini:// */ if (start_with_gemini != 0) {