That isn't the problem. I wasn't sure about this, but I've null terminated the 
string before and the problem was the same. 

To be sure I made a test:
Char notetest[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 
'c', 'd', 'e', 'f', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 
'c', '\0'};

DmWrite (p, 0, &u32Value, 4); // noteLength
DmWrite (p, 4, &u32Value, 4); // reserved
DmStrCopy(p, 8, notetest); // <-- works
DmStrCopy(p, StrLen(notetest) +8 +1, notetest); // <-- fails



> StrNCopy does not put a null at the end of the destination string, 
> you need
> to put one yourself or StrLen will fail depending on the following 
> memory.

> -- 
> Regis St-Gelais
> www.laubrass.com 
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to