summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/server.h b/include/server.h
index fe7cb9b..96d9917 100644
--- a/include/server.h
+++ b/include/server.h
@@ -26,7 +26,8 @@ struct gmnisrv_client {
SSL *ssl;
BIO *bio, *sbio;
- char buf[BUFSIZ < GEMINI_MAX_URL + 3 ? GEMINI_MAX_URL + 3 : BUFSIZ];
+ char buf[4096];
+ static_assert(GEMINI_MAX_URL + 3 < 4096);
size_t bufix, bufln;
enum response_state state;