use macro

This commit is contained in:
prx 2020-12-09 13:53:21 +01:00 committed by Solene Rapenne
parent e3cb05af6d
commit e3448992bc

2
main.c
View file

@ -197,7 +197,7 @@ main(int argc, char **argv)
* check if the beginning of the request starts with * check if the beginning of the request starts with
* gemini:// * gemini://
*/ */
start_with_gemini = strncmp(request, "gemini://", 9); start_with_gemini = strncmp(request, "gemini://", GEMINI_PART);
/* the request must start with gemini:// */ /* the request must start with gemini:// */
if (start_with_gemini != 0) { if (start_with_gemini != 0) {