Also revert this one, doesn't look right either.

This commit is contained in:
matthieu 2018-07-10 15:52:52 +00:00
parent a8c7a38ea4
commit 2c8cd3e507

View File

@ -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;