Discussion:
[Synce-devel] [PATCH] MAX_PATH is wrong.
Pedro Alves
2006-09-11 23:08:59 UTC
Permalink
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
David Eriksson
2006-09-12 20:15:56 UTC
Permalink
Post by Pedro Alves
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.
Comitted, thanks!

\David
--

Continue reading on narkive:
Loading...