usb: gadget: uvc: Use strlcpy instead of strncpy
authorChen Gang <gang.chen@asianux.com>
Fri, 1 Mar 2013 19:46:33 +0000 (20:46 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 18 Mar 2013 09:18:23 +0000 (11:18 +0200)
commitc3ec830d8925d904f8826d52227d7dfb5dee922c
tree59dcd8577027c4b8fd2806d72c0f9d83cc10e860
parent6854bcdc6ff92e3a9c24940a3c5ebb446950c974
usb: gadget: uvc: Use strlcpy instead of strncpy

For NULL terminated string, better notice '\0' in the end.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Bhupesh Sharma <bhupesh.sharma@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/uvc_v4l2.c