aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server.c b/server.c
index 5bc0ff5..d07a642 100644
--- a/server.c
+++ b/server.c
@@ -492,9 +492,9 @@ found:
err:
if (servname != NULL)
- strncpy(c->req, servname, sizeof(c->req));
+ strlcpy(c->req, servname, sizeof(c->req));
else
- strncpy(c->req, "null", sizeof(c->req));
+ strlcpy(c->req, "null", sizeof(c->req));
start_reply(c, BAD_REQUEST, "Wrong/malformed host or missing SNI");
}