aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5175f00..690fcda 100644
--- a/main.c
+++ b/main.c
@@ -898,7 +898,7 @@ static int createdir(const struct http_payload *const p,
{
.status = HTTP_STATUS_BAD_REQUEST,
.buf.ro = body,
- .n = strlen(body)
+ .n = sizeof body - 1
};
if (http_response_add_header(r, "Content-Type", "text/html"))