From 2c8cd3e50705edef298e69fe0f9d41b02f062bfb Mon Sep 17 00:00:00 2001 From: matthieu Date: Tue, 10 Jul 2018 15:52:52 +0000 Subject: [PATCH] Also revert this one, doesn't look right either. --- app/xenodm/xenodm/auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;