Hi all,
The attached patch fixes MAX_PATH to the correct value of 260
in libsynce/lib/synce_types.h.
While debugging my app, I noticed that I was getting corrupted data.
As a hunch, I thought there would be some type mismatch between
linux (32bit)/Windows hosts, like the wchar_t case, but it turned out
to be the MAX_PATH. I copied the value from the w32api/include/windef.h
file of the winsup/w32api project (MinGW/cygwin), so there should be
no legal implications.
Cheers,
Pedro Alves
Index: lib/synce_types.h
===================================================================
--- lib/synce_types.h (revisão 2569)
+++ lib/synce_types.h (cópia de trabalho)
@@ -154,7 +154,7 @@
* Other macros
*/
-#define MAX_PATH 256
+#define MAX_PATH 260
#ifndef FALSE
#define FALSE false
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Synce-devel mailing list
Synce-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel