Updated

Kenny Miles rushed for 127 yards and a touchdown and No. 2 South Carolina pulled out a closer-than-expected 24-7 win over FCS opponent Wofford 24-7 on Saturday.

The victory gave Steve Spurrier his 64th win in eight seasons with the Gamecocks (9-2), tying him with Rex Enright for most ever in program history. But it wasn't until a 17-point fourth quarter that Spurrier and South Carolina could rest easy in this one.

Adam Yates' 23-yard field goal broke a 7-all tie with 11:57 to go. After the Terriers (8-3) failed on a 4th-and-1 at their 34, Connor Shaw threw an 8-yard touchdown pass to Ace Sanders to widen the lead.

Moments later, Wofford's Eric Breitenstein fumbled and Akeem Auguste returned it 31 yards for a touchdown, making it 24-7.

It was the Gamecocks 11th straight win at Williams-Brice Stadium and completed their first perfect run at home (7-0) since 1987.