summaryrefslogtreecommitdiff
path: root/app/xenodm
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-10 15:52:53 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-10 15:52:53 +0000
commitdc046a2516bbb7c536c65144a504340ad210518e (patch)
treec4c3f734c82e630245ecb563208e5fb08d1abb64 /app/xenodm
parent7d1afdc466a8931afee6721c68541e6972af19c8 (diff)
Also revert this one, doesn't look right either.
Diffstat (limited to 'app/xenodm')
-rw-r--r--app/xenodm/xenodm/auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/xenodm/xenodm/auth.c b/app/xenodm/xenodm/auth.c
index 2e4791a88..7f022ec88 100644
--- a/app/xenodm/xenodm/auth.c
+++ b/app/xenodm/xenodm/auth.c
@@ -724,7 +724,8 @@ setAuthNumber (Xauth *auth, char *name)
auth->number_length = strlen (colon);
number = malloc (auth->number_length + 1);
if (number) {
- strlcpy (number, colon, auth->number_length);
+ strncpy (number, colon, auth->number_length);
+ number[auth->number_length] = '\0';
} else {
LogOutOfMem ("setAuthNumber");
auth->number_length = 0;