Also revert this one, doesn't look right either.
This commit is contained in:
parent
a8c7a38ea4
commit
2c8cd3e507
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user