diff options
| author | Drew DeVault <sir@cmpwn.com> | 2020-09-26 14:45:17 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2020-09-26 14:45:39 -0400 |
| commit | 48f75abcfd488b39626943aa9d89905ce94a886e (patch) | |
| tree | ada6e2e675dd009bc0f81d5cbc606df5cfe0ff02 /include | |
| parent | 9bed26b8d91ff4f688c200ff8183e3134edf1d55 (diff) | |
| download | gmnisrv-48f75abcfd488b39626943aa9d89905ce94a886e.tar.gz gmnisrv-48f75abcfd488b39626943aa9d89905ce94a886e.tar.xz gmnisrv-48f75abcfd488b39626943aa9d89905ce94a886e.zip | |
Bump client buffer size to BUFSIZ
Diffstat (limited to 'include')
| -rw-r--r-- | include/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <assert.h> #include <openssl/ssl.h> #include <poll.h> #include <time.h> @@ -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; |
