]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: replace strncpy with strlcpy
authorhayeswang <hayeswang@realtek.com>
Tue, 26 Aug 2014 02:08:23 +0000 (10:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Aug 2014 23:18:06 +0000 (16:18 -0700)
commit207f4177683a4d11f28a114f8dd4ac5d3eaa67be
treeb094cc643a31a3d99ca90d8daf58aa4abd9aaf25
parent1b0e8e38d723c1644c0b182a8ef0cb1ad20d7cf6
r8152: replace strncpy with strlcpy

Replace the strncpy with strlcpy, and use sizeof to determine the
length.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c