Modified:
trunk/libpconn/PConnection_libusb.c
trunk/src/backup.c
Log:
Fixed an error when reading some databases fromc certain devices
Modified: trunk/libpconn/PConnection_libusb.c
==============================================================================
--- trunk/libpconn/PConnection_libusb.c (original)
+++ trunk/libpconn/PConnection_libusb.c Tue Oct 21 13:55:35 2008
@@ -47,7 +47,11 @@
#include "pconn/palm_errno.h"
#include "pconn/netsync.h"
-#define IOBUF_LEN 1024
+/* This one seems to fail when set too high with some prcs and some
+ * devices (max 128 on Tungsten E and 'Saved Preferences', so let's
+ * stay safe.
+ */
+#define IOBUF_LEN 64
struct usb_data {
usb_dev_handle *dev;
Modified: trunk/src/backup.c
==============================================================================
--- trunk/src/backup.c (original)
+++ trunk/src/backup.c Tue Oct 21 13:55:35 2008
@@ -283,7 +283,7 @@
/* Download the 'i'th resource from the Palm */
err = DlpReadResourceByIndex(pconn, dbh, i, 0,
- DLPC_RESOURCE_TOEND,
+ DLPC_RESOURCE_TOEND, /* XXX should this be the max rec size? */
&resinfo,
&rptr);