libgphoto2/libgphoto2/gphoto2-file.c lines 770 and 771 in 13324 revision in gp_file_copy:
memcpy (destination->name, source->name, sizeof (source->name));
memcpy (destination->mime_type, source->mime_type, sizeof (source->mime_type));
sizeof returns not a size of string but size of pointer so instead of making a copy of a string we copy only 4 or 8 first bites.
2011-11-30 23:43:04 PST in gPhoto