diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2018-07-10 15:52:53 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2020-07-14 15:52:40 +0200 |
commit | 8899e749bae5d58ed2944c97e67be4a4ca3b4811 (patch) | |
tree | baf3ae0ba889fdbe86d0ec98dae15e8e6c09347b /xenodm | |
parent | 4e46d519b146304c23bcd37d9720bacd18d46e80 (diff) |
Also revert this one, doesn't look right either.
Diffstat (limited to 'xenodm')
-rw-r--r-- | xenodm/auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xenodm/auth.c b/xenodm/auth.c index 2e4791a..7f022ec 100644 --- a/xenodm/auth.c +++ b/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; |