isdn: potential buffer overflows
authorDan Carpenter <error27@gmail.com>
Sat, 4 Sep 2010 08:38:59 +0000 (08:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Sep 2010 01:29:18 +0000 (18:29 -0700)
commit017d79ef0073fdb170dcf185dc4c2456a304d659
tree6a1b6cadc0f43745a60840910c5e52d9d993ad9e
parentca1cef3a3a8af961f504abfcf9e13dac088e1ad1
isdn: potential buffer overflows

cs->ics.parm.setup.phone is a 32 character array.  In each of these
cases we're copying from a 35 character array into a 32 character array
so we should use strlcpy() instead of strcpy().

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/divert/isdn_divert.c