summaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/drivers/ethertap_user.c
diff options
context:
space:
mode:
authorAlan <gnomes@lxorguk.ukuu.org.uk>2015-04-08 14:59:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 21:24:35 +0200
commit7879b1d94badb5c34fa777244091c2304191dddf (patch)
tree3c000750eb510d24a930dcf919094e0fed656ebc /arch/um/os-Linux/drivers/ethertap_user.c
parentdrivers/char: Remove msm_smd_pkt driver (diff)
downloadlinux-7879b1d94badb5c34fa777244091c2304191dddf.tar.xz
linux-7879b1d94badb5c34fa777244091c2304191dddf.zip
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: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--arch/um/os-Linux/drivers/ethertap_user.c2
1 files changed, 1 insertions, 1 deletions
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;