Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7879b1d9 authored by Alan's avatar Alan Committed by Greg Kroah-Hartman
Browse files

um,ethertap: use strncpy

[um maintainers appear to be vanished]

I can't prove the case pointed out in
https://bugzilla.kernel.org/show_bug.cgi?id=82341


is correct so let us play safe.

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f0c7b474
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ static int etap_tramp(char *dev, char *gate, int control_me,
	sprintf(data_fd_buf, "%d", data_remote);
	sprintf(version_buf, "%d", UML_NET_VERSION);
	if (gate != NULL) {
		strcpy(gate_buf, gate);
		strncpy(gate_buf, gate, 15);
		args = setup_args;
	}
	else args = nosetup_args;