msi: Fix a heap corruption bug by resizing the src string before adding to it.