summaryrefslogtreecommitdiff
path: root/camlibs/jamcam
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2003-01-05 20:18:18 +0000
committerMarcus Meissner <marcus@jet.franken.de>2003-01-05 20:18:18 +0000
commit358e6c7e926643c33b33cd695702a76084f778a9 (patch)
tree35c556593fffc8e5dbeddeede6c7f3ff266121df /camlibs/jamcam
parent1f986060c15209bcf7c5d59ab53191255faf6461 (diff)
downloadlibgphoto2-358e6c7e926643c33b33cd695702a76084f778a9.tar.gz
* library.c: We need to read a reply of 8 bytes, or the kernel
reports data overflow. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6007 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/jamcam')
-rw-r--r--camlibs/jamcam/ChangeLog5
-rw-r--r--camlibs/jamcam/library.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/camlibs/jamcam/ChangeLog b/camlibs/jamcam/ChangeLog
index ab185d0aa..73e22fc7c 100644
--- a/camlibs/jamcam/ChangeLog
+++ b/camlibs/jamcam/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-05 Marcus Meissner <marcus@jet.franken.de>
+
+ * library.c: We need to read a reply of 8 bytes, or the kernel
+ reports data overflow.
+
2002-07-16 Lutz Müller <lutz@users.sourceforge.net>
* Makefile.am: Don't use glib.
diff --git a/camlibs/jamcam/library.c b/camlibs/jamcam/library.c
index 557a9ac71..612028579 100644
--- a/camlibs/jamcam/library.c
+++ b/camlibs/jamcam/library.c
@@ -81,7 +81,7 @@ static int jamcam_get_int_at_pos( unsigned char *buf, int pos ) {
}
static int jamcam_set_usb_mem_pointer( Camera *camera, int position ) {
- char reply[4];
+ char reply[8];
GP_DEBUG ("* jamcam_set_usb_mem_pointer");
GP_DEBUG ("*** position: %d (0x%x)",
@@ -97,7 +97,7 @@ static int jamcam_set_usb_mem_pointer( Camera *camera, int position ) {
0xa0,
0,
0,
- reply, 4 );
+ reply, 8 );
return( GP_OK );
}