From f8d19d2cbffb0acfc90f4867ad2e4bf532aa2e46 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 15 Dec 2009 08:25:29 +0000 Subject: [PATCH] len should be ret git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12559 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/ptp2/ptpip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/ptp2/ptpip.c b/camlibs/ptp2/ptpip.c index 9ad6fd079..415a52a83 100644 --- a/camlibs/ptp2/ptpip.c +++ b/camlibs/ptp2/ptpip.c @@ -138,7 +138,7 @@ ptp_ptpip_generic_read (PTPParams *params, int fd, PTPIPHeader *hdr, unsigned ch return PTP_RC_GeneralError; } gp_log_data ( "ptpip/generic_read", (char*)xhdr+curread, ret); - curread += len; + curread += ret; if (ret == 0) { gp_log (GP_LOG_ERROR, "ptpip", "End of stream after reading %d bytes of ptpipheader", ret); return PTP_RC_GeneralError;