1
0
mirror of https://git.sr.ht/~sircmpwn/gmnisrv synced 2024-11-03 06:07:17 -05:00

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;
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;