1
0
forked from aniani/gmnisrv

Okay, time to quit fucking around with BUFSIZ

This commit is contained in:
Drew DeVault 2020-09-26 15:00:40 -04:00
parent d4d8ea646c
commit 61bc033740

View File

@ -26,7 +26,8 @@ struct gmnisrv_client {
SSL *ssl; SSL *ssl;
BIO *bio, *sbio; 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; size_t bufix, bufln;
enum response_state state; enum response_state state;