Christian Ehrhoff scored 38 seconds into overtime to give the Buffalo Sabres a 3-2 victory against the Toronto Maple Leafs at First Niagara Center on Friday.

Ehrhoff's goal came just as a penalty to Toronto's Paul Ranger ended, and the shot from the point beat Maple Leafs goalie James Reimer through the five-hole. It was Ehrhoff's second goal of the season.

"It was definitely nice," Ehrhoff said. "It wasn't a big blast, it just found a little lane there and put it through [Carl] Gunnarsson's legs and Reimer didn't see it."

Ehrhoff was helped out by a screen in front by newest Sabres forward Matt D'Agostini. The Sabres claimed D'Agostini off waivers from the Pittsburgh Penguins on Wednesday.

"[Ranger] was coming out of the box behind [Ehrhoff] there," D'Agostini said. "So I just figured he'd try to get it on net. He did a good job just getting it through."

The win ended the Sabres' five-game losing streak.

"It's one of those things where we're trying, we're trying," Sabres forward Drew Stafford said. "We're competing. The effort's there. We just haven't been able to have a full 60-minute effort. I thought tonight we had a pretty solid night and also scored some goals. You're not going to win a lot of games 1-0."

The Sabres ended a streak of four straight games in which they scored one goal per game.

Ranger took a holding penalty with 1:32 left in the third period, giving the Sabres a power play at the end of regulation, but it was Toronto's James van Riemsdyk who had the best chance during it. With 20.4 seconds remaining, van Riemsdyk broke in on Sabres goalie Ryan Miller only to be taken out of the play by D'Agostini.

"Usually when you're in all alone and you get your legs taken out from under you, you expect something, especially when the calls have been what they were," van Riemsdyk said. "We can't use officiating as an excuse. We've got to find ways to be better."

Miller said, "Great effort by D'Agostini. He got back hard and forced the ref to make a decision. The ref decided he got the puck, and we haven't changed that rule where if you get a hold of that puck first they're probably not going to get a tripping penalty. Great effort getting back and it helps us get to overtime. I thought it was a nice job."

The Sabres were 1-for-4 on the power play; the Maple Leafs went 0-for-1.

Phil Kessel put the Maple Leafs ahead 1-0 beating Miller on a quick 2-on-1 rush. It developed when Sabres defenseman Tyler Myers was caught out of position. That left Mike Weber alone to defend Kessel and van Riemsdyk. The goal was Kessel's 14th of the season.

"[Kessel] backed me up a little bit too far," Miller said. "I don't like giving up one there. After that, I thought the guys settled in."

Matt Moulson tied the game 1-1 on the power play with his 10th goal of the season at 7:57 of the second period. Moulson put away a loose puck from a shot by Ville Leino in front of the net with Reimer out of position.