Use c2pstrcpy() rather than silly sprintf() tricks.