could it be that the C function modifies the string and writes beyond what you 
previously allocated?

Reply via email to