diff options
| author | Drew DeVault <sir@cmpwn.com> | 2020-09-26 14:56:18 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2020-09-26 14:56:18 -0400 |
| commit | d4d8ea646c0bf4db9cbc3b72a24d7a34773e494b (patch) | |
| tree | 2219c14f92699d107ccec18692123e6cf571578a /include | |
| parent | 48f75abcfd488b39626943aa9d89905ce94a886e (diff) | |
| download | gmnisrv-d4d8ea646c0bf4db9cbc3b72a24d7a34773e494b.tar.gz gmnisrv-d4d8ea646c0bf4db9cbc3b72a24d7a34773e494b.tar.xz gmnisrv-d4d8ea646c0bf4db9cbc3b72a24d7a34773e494b.zip | |
Turns out BUFSIZ is small sometimes
Diffstat (limited to 'include')
| -rw-r--r-- | include/server.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/server.h b/include/server.h index 3435b1f..fe7cb9b 100644 --- a/include/server.h +++ b/include/server.h @@ -26,8 +26,7 @@ struct gmnisrv_client { SSL *ssl; BIO *bio, *sbio; - char buf[BUFSIZ]; - static_assert(BUFSIZ >= GEMINI_MAX_URL + 3); + char buf[BUFSIZ < GEMINI_MAX_URL + 3 ? GEMINI_MAX_URL + 3 : BUFSIZ]; size_t bufix, bufln; enum response_state state; |
