atlx: strncpy does not null terminate string
authorRoel Kluin <roel.kluin@gmail.com>
Thu, 6 Aug 2009 13:06:56 +0000 (13:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Aug 2009 04:45:31 +0000 (21:45 -0700)
commit082ba88a5e6b1425abed3fae4ad65e0e985ed081
tree026f6d39f60769fbd77369fc45affb68f79d149e
parent5d5ceb8bdde403529ad9849f300dc80b1884550f
atlx: strncpy does not null terminate string

strlcpy() will always null terminate the string.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Jay Cliburn <jcliburn@gmail.com>
Cc: Chris Snook <csnook@redhat.com>
Cc: Jie Yang <jie.yang@atheros.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/atl1c/atl1c_ethtool.c
drivers/net/atlx/atl1.c