isdn: make sure strings are null terminated
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 24 Nov 2011 02:41:49 +0000 (02:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Nov 2011 23:39:36 +0000 (18:39 -0500)
commit746ae30f821a8533ffba7769e492f59a96fdbeec
treee05346d8584aae51cae021b5832aeae53aa311ed
parent1281bc256543eb610b14fa95ce1967397931a120
isdn: make sure strings are null terminated

These strings come from the user.  We strcpy() them inside
cf_command() so we should check that they are NULL terminated and
return an error if not.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/divert/divert_procfs.c