How do I safely extend electrical wiring without replacing it entirely?
I''d suggest buying a small junction box and installing it so the incoming cable has enough length, splice on new wire, then run the new wire the rest if the way to the current box.