diff options
author | June McEnroe <june@causal.agency> | 2020-07-16 23:40:08 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-16 23:40:08 -0400 |
commit | dac7845cb3aa645c14928ae0b1ec9eb6475d8956 (patch) | |
tree | 5359558039e82b9c5727db235f0fd927e0cdec95 | |
parent | Remove sudo from make install (diff) | |
download | scooper-dac7845cb3aa645c14928ae0b1ec9eb6475d8956.tar.gz scooper-dac7845cb3aa645c14928ae0b1ec9eb6475d8956.zip |
Don't write null terminator in stylesheet response
-rw-r--r-- | server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c index 96acad7..514dad3 100644 --- a/server.c +++ b/server.c @@ -62,7 +62,7 @@ static enum kcgi_err stylesheet(struct kreq *req) { ) || khttp_body(req); if (req->method == KMETHOD_HEAD) return error; - return error || khttp_write(req, CSS, sizeof(CSS)); + return error || khttp_write(req, CSS, sizeof(CSS) - 1); } static enum kcgi_err dispatch(struct kreq *req) { |