From 48f75abcfd488b39626943aa9d89905ce94a886e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 26 Sep 2020 14:45:17 -0400 Subject: Bump client buffer size to BUFSIZ --- include/server.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/server.h') diff --git a/include/server.h b/include/server.h index ef5781a..3435b1f 100644 --- a/include/server.h +++ b/include/server.h @@ -1,5 +1,6 @@ #ifndef GMNISRV_SERVER #define GMNISRV_SERVER +#include #include #include #include @@ -25,7 +26,8 @@ struct gmnisrv_client { SSL *ssl; BIO *bio, *sbio; - char buf[GEMINI_MAX_URL + 3]; + char buf[BUFSIZ]; + static_assert(BUFSIZ >= GEMINI_MAX_URL + 3); size_t bufix, bufln; enum response_state state; -- cgit v1.2.3