From 8754073a6ad9ca6fc1e6fd4743e64954b199a716 Mon Sep 17 00:00:00 2001 From: Jean-Francois Moine Date: Wed, 21 Jan 2009 19:32:26 +0100 Subject: gspca - main: Use usb_make_path() for VIDIOC_QUERYCAP. From: Thierry MERLE Priority: normal Signed-off-by: Thierry MERLE Signed-off-by: Jean-Francois Moine --- linux/drivers/media/video/gspca/gspca.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux/drivers/media/video/gspca') diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c index f5fad6905..c3ea5339c 100644 --- a/linux/drivers/media/video/gspca/gspca.c +++ b/linux/drivers/media/video/gspca/gspca.c @@ -970,8 +970,7 @@ static int vidioc_querycap(struct file *file, void *priv, le16_to_cpu(gspca_dev->dev->descriptor.idVendor), le16_to_cpu(gspca_dev->dev->descriptor.idProduct)); } - strncpy(cap->bus_info, gspca_dev->dev->bus->bus_name, - sizeof cap->bus_info); + usb_make_path(gspca_dev->dev, cap->bus_info, sizeof(cap->bus_info)); cap->version = DRIVER_VERSION_NUMBER; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING -- cgit v1.2.3