summaryrefslogtreecommitdiff
path: root/app/xenodm
diff options
context:
space:
mode:
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;