Aaron Beard | The Associated Press | December 20, 2017 Wofford stuns No. 5 North Carolina 79-75 in Chapel Hill Wofford ended North Carolina's 23-game home winning streak on Wednesday. Share CHAPEL HILL, N.C. — Fletcher Magee scored 27 points to help Wofford stun No. 5 North Carolina 79-75 on Wednesday night, snapping the reigning national champion's 23-game home winning streak. The Terriers (8-4) led the entire second half and by as many as 14 points before holding off UNC's late-game run for a huge road win and their first win over a ranked team in 23 games. RELATED: Is Duke's defense a problem? The Tar Heels (10-2) got within a point twice and missed four 3-pointers for the tie in the final six minutes. But they never could overtake the Terriers, who played confidently and kept counter-punching every time UNC made a run. The Terriers closed it out with four straight free throws in the final 15.2 seconds to seal it, then mobbed each other at midcourt as the horn sounded and the Tar Heels headed to the locker room. When you beat a Top-25 program FOR THE FIRST TIME IN SCHOOL HISTORY!!!#Wofford #ConquerAndPrevail pic.twitter.com/k5iUDLwB57 — Wofford Athletics (@WoffordTerriers) December 21, 2017 Joel Berry II scored 23 points to lead UNC, which suffered its first loss to an unranked team while ranked in the top five since falling to Boston College in January 2009. Big picture Wofford: The Terriers were picked to finish sixth in the Southern Conference. But Magee and the Terriers closed the first half on an 8-0 run to take a 34-33 lead, then made 10 of 15 shots out of the break to steal momentum and put UNC in catch-up mode. More importantly, they never folded even as the Tar Heels kept inching closer and closer. UNC: This wasn't the way the Tar Heels wanted to follow a tough weekend road win at No. 21 Tennessee. They were often sloppy with the ball, spent much of the game missing shots and struggling to get consistent defensive stops. Luke Maye struggled offensively (17 points on 4-for-16 shooting) and UNC finished the game shooting just 36 percent.