Jamie McGinn, Johan Larsson and Brian Gionta all scored in Buffalo's big third period and the Sabres rallied for a 4-2 comeback victory over the slumping Montreal Canadiens on Wednesday night.

Marcus Foligno also scored for Buffalo, which played its first game since the All-Star break and led 2-1 heading into the final period. The Sabres, who moved out of last place in the Atlantic Division, are 6-4-0 in their last 10 games.

Dale Weise and Alex Galchenyuk scored for Montreal, which has lost four in a row and is 1-8-1 in its last 10. The Canadiens opened the season 19-4-3, but are 5-20-1 since.