Ensure strncpy'd strings are null terminated
Memory leak fixes (Bug #812497)
moving trunk for module inkscape