From 4a570e20f0c8eb3eb8fc40c8de215e1e52b8b145 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 3 Jan 2017 09:54:43 +0100 Subject: [PATCH] incorrect array index (AFL) --- libgphoto2_port/vusb/vcamera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgphoto2_port/vusb/vcamera.c b/libgphoto2_port/vusb/vcamera.c index 2048f958d..a0eb54a17 100644 --- a/libgphoto2_port/vusb/vcamera.c +++ b/libgphoto2_port/vusb/vcamera.c @@ -793,7 +793,7 @@ ptp_getstorageinfo_write(vcamera *cam, ptpcontainer *ptp) { CHECK_PARAM_COUNT(1); if (ptp->params[0] != 0x00010001) { - gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid storage id 0x%08x", ptp->params[1]); + gp_log (GP_LOG_ERROR,__FUNCTION__, "invalid storage id 0x%08x", ptp->params[0]); ptp_response(cam,PTP_RC_InvalidStorageId,0); return 1; }