From fbacb351702606ad36ec921d2e2972ed996d48eb Mon Sep 17 00:00:00 2001 From: prx Date: Thu, 25 Feb 2021 20:30:30 +0100 Subject: [PATCH] follow spec, fread() get nmemb-1 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index e3c4bb2..29e55e3 100644 --- a/main.c +++ b/main.c @@ -20,7 +20,7 @@ #include "utils.h" #define GEMINI_PART 9 -#define GEMINI_REQUEST_MAX 1024 /* https://gemini.circumlunar.space/docs/specification.html */ +#define GEMINI_REQUEST_MAX 1025 /* https://gemini.circumlunar.space/docs/specification.html + ending \0 */