[coldsync commit] r2605 - in trunk: libpconn src

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 21, 2008, 5:03:02 PM10/21/08
to coldsync...@googlegroups.com
Author: azummo...@towertech.it
Date: Tue Oct 21 13:55:35 2008
New Revision: 2605

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);

Reply all
Reply to author
Forward
0 new messages