isdnloop: use strlcpy() instead of strcpy()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Nov 2013 08:21:10 +0000 (11:21 +0300)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:53:58 +0000 (07:53 +0200)
commited488d772a73690dab2e3152d3a313ebef69be86
tree73e3a6dba83b7ceee3ab3c858f283bc1e8259d79
parentf1a8a3ffd1fd6921933b3dc8fc08f140e0c7b7e1
isdnloop: use strlcpy() instead of strcpy()

[ Upstream commit f9a23c84486ed350cce7bb1b2828abd1f6658796 ]

These strings come from a copy_from_user() and there is no way to be
sure they are NUL terminated.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/isdn/isdnloop/isdnloop.c