Clear away all objects and obstructions around the drain and the vent. Find the ends of the T-fitting that connect the vent to your plumbing. Mark them with a marker.
Cut through the drain pipe at the marks with a hacksaw, being careful only to cut through the pipe and not the surrounding materials or cabinets. Take the drain vent out of the piping once the cut is complete.
Install two coupling fittings on the ends of the pipes where the vent previously was installed. Measure the distance between the two fittings with a tape measure. Cut another length of pipe to fit between the two fittings.
Dry-fit the pipe in place. If it does not fit, measure and cut another length. Take the fittings and pipe apart after the fit is perfect. Coat all fittings and pipe with PVC cement and re-install. Let the repair dry.