]> git.baikalelectronics.ru Git - kernel.git/commit
b44: strncpy does not null terminate string
authorroel kluin <roel.kluin@gmail.com>
Fri, 17 Jul 2009 08:01:54 +0000 (08:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2009 15:02:58 +0000 (08:02 -0700)
commit19425e7c5c04e467eedd1ab826fe05ce4e5992f7
tree34e2237c397d591ddb53eea5d421052ee617c1f1
parent557f190098913a05b3b960431950dd249ee0ae6b
b44: strncpy does not null terminate string

strlcpy() will always null terminate the string. Also use the
sizeof(version) to strlcopy() the version string.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/b44.c