VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Alan <gnomes@lxorguk.ukuu.org.uk> 2015-04-08 13:59:21 +0100 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2015-05-24 12:24:35 -0700 commit: 7879b1d94badb5c34fa777244091c2304191dddf parent: f0c7b474665ebd3ebb17394eb7339ee24a46580b
Commit Summary:
um,ethertap: use strncpy
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/um/os-Linux/drivers/ethertap_user.c b/arch/um/os-Linux/drivers/ethertap_user.c
index b39b6696ac58..6d4918246ffe 100644
--- a/arch/um/os-Linux/drivers/ethertap_user.c
+++ b/arch/um/os-Linux/drivers/ethertap_user.c
@@ -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;