From 358e6c7e926643c33b33cd695702a76084f778a9 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 5 Jan 2003 20:18:18 +0000 Subject: * 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 --- camlibs/jamcam/ChangeLog | 5 +++++ camlibs/jamcam/library.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'camlibs/jamcam') 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 + + * library.c: We need to read a reply of 8 bytes, or the kernel + reports data overflow. + 2002-07-16 Lutz Müller * 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 ); } -- cgit v1.2.1