On 2/20/2013 6:38 AM, prasad antony
wrote:
const char *name = g_mime_part_get_filename ((GMimePart *) part); char *path = g_build_filename ("/full/path/to", name); int fd = open (path, ...); g_free (path);
How did you do this?
Sounds like you somehow corrupted the memory pointed to by name. Did you free() it? Don't.
I don't know, do you have a code snippet to show what you did? Jeff |