summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-16 23:40:08 -0400
committerJune McEnroe <june@causal.agency>2020-07-16 23:40:08 -0400
commitdac7845cb3aa645c14928ae0b1ec9eb6475d8956 (patch)
tree5359558039e82b9c5727db235f0fd927e0cdec95
parentRemove sudo from make install (diff)
downloadscooper-dac7845cb3aa645c14928ae0b1ec9eb6475d8956.tar.gz
scooper-dac7845cb3aa645c14928ae0b1ec9eb6475d8956.zip
Don't write null terminator in stylesheet response
Diffstat (limited to '')
-rw-r--r--server.c2
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) {