summaryrefslogtreecommitdiffstats
path: root/include/server.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-09-26 15:00:40 -0400
committerDrew DeVault <sir@cmpwn.com>2020-09-26 15:00:40 -0400
commit61bc033740e2d2c2ad953c353d5fe458cce98c50 (patch)
tree3df845c7923f38aa8abf66f2037fcc0ca97c86b4 /include/server.h
parentd4d8ea646c0bf4db9cbc3b72a24d7a34773e494b (diff)
downloadgmnisrv-61bc033740e2d2c2ad953c353d5fe458cce98c50.tar.gz
gmnisrv-61bc033740e2d2c2ad953c353d5fe458cce98c50.tar.xz
gmnisrv-61bc033740e2d2c2ad953c353d5fe458cce98c50.zip
Okay, time to quit fucking around with BUFSIZ
Diffstat (limited to 'include/server.h')
-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;