Fist of all, you must be sure that they have same output voltage and same polarity. Normally the center is positive and the out contact is negative. This should be in the power supply label.

Can you take a photo of the two connectors?