Fixed the debug code.
diff --git a/src/libusb-glue.c b/src/libusb-glue.c
index 23937b6..0f9d9c5 100644
--- a/src/libusb-glue.c
+++ b/src/libusb-glue.c
@@ -390,7 +390,7 @@
       return PTP_ERROR_IO;
 #ifdef ENABLE_USB_BULK_DEBUG
     printf("<==USB IN\n");
-    data_dump_ascii (stdout,(bytes+curread),toread,16);
+    data_dump_ascii (stdout,(bytes+curread),result,16);
 #endif
     curread += result;
     if (result < toread) /* short reads are common */