Matt Frattin netted the game-winning goal with 1.5 seconds left in overtime to lift the Toronto Maple Leafs over the Buffalo Sabres, 4-3, at First Niagara Center.
Frattin also scored in regulation, while Jay McClement and Cody Franson added goals for Toronto, which snapped a two-game slide. James Reimer stopped 29 shots in the victory.
Jason Pominville, Andrej Sekera and Mikhail Grigorenko supplied the offense for the Sabres, who have dropped four straight after winning their first two games of the season.
Ryan Miller allowed all four goals on 20 shots in defeat.
"I thought we dominated the possession game for most of the night," Sabres coach Lindy Ruff said. "We had a lot of great looks and I thought we really skated well."
The Sabres entered the third period trailing, 3-2, but tied the game 7:10 into the frame as Grigorenko grabbed a rebound in the slot and slid a backhander through the legs of Reimer for his first career goal.
The remainder of the third period saw the teams go back-and-forth on the ice, but neither team could record the go-ahead goal, forcing overtime.
It seemed as though the game would go to a shootout as time was winding down in the extra period until Frattin grabbed an outlet pass near the left boards just inside the blue line and cruised towards the net before slipping a shot inside the near post for the deciding tally.
Toronto struck first at the 9:25 mark of the opening period when Nazem Kadri's shot from the high slot bounced off the crossbar before McClement stuffed the rebound home from in front.
But the Sabres were able to tie the game with 5:32 left in the frame while on the power play with Pominville's wrister from the left circle that went through a crowd and snuck inside the far post.
Buffalo then went on top just 2:28 into the second period after Sekera received a pass in front of the net and lifted a backhander over the glove of Reimer.
The Maple Leafs, however, knotted the score just 1:12 later when Frattin cleaned up a Franson rebound, and then regained the lead at the 6:21 mark of the second period with Franson's snap shot from the right point.
Buffalo's Steve Ott was denied on a breakaway with a little over three minutes left in the second period to keep it a 3-2 game heading into the third.
Toronto had lost three straight and 10 of its last 11 games in Buffalo entering the contest ... The Maple Leafs went 0-for-2 on the power play ... Buffalo scored on its lone power play of the game ... Marcus Foligno had two assists for the Sabres.