The macro definition : #define memcpy(x,y,z) (MemMove(x,(void *)y,z) ? x : x) should be changed to : #define memcpy(x,y,z) (MemMove(x,(void *)(y),z) ? x : x) so that whenever the "y" argument is an expression (such as in "memcpy(p, q+i, r)") the cast applies to the whole argument. -- Denis Faivre - [EMAIL PROTECTED] -- Ablivio - http://www.ablivio.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
