Stafford's first goal in 18 games was of highlight-reel quality. He raced down the right side of the Boston zone and went around the net to score. It was just his third goal of the season.
There was one goal and 13 shots combined in the first period.
Flynn stripped the puck from Johnny Boychuk in the neutral zone and used his backhand to score on the ensuing breakaway. It was Buffalo's first short=handed goal of the season, and Flynn's first goal since Oct. 26.
The Bruins tied it 1-1 with a short-handed goal of their own when Marchand beat Miller between the legs on a 2-on-1 break 1:50 into the second period.
Marchand added another goal less than two minutes later when his one-timed shot knuckled over Miller's right shoulder.
The Sabres forged another tie with 2:49 left in the second period. Jamie McBain's errant wrist shot struck Foligno in the chest, and the forward tapped it in for his second goal in two games.
Myers put Buffalo ahead 4-2 when he sent a high wrist shot past Johnson with 4:22 left in the game.
Buffalo's penalty killers were perfect for the sixth straight game, a streak that includes 14 power plays against.
Buffalo lost leading scorer Cody Hodgson to an upper body injury late in the first period. He blocked Torrey Krug's shot with his wrist and didn't return.
NOTES: The Sabres acquired LW Linus Omark from Edmonton for a conditional sixth-round pick in the 2014 NHL draft. ... Bruins LW Daniel Paille missed the game as he continues to recover from a concussion. ... The Sabres scratched LW John Scott and D Chad Ruhwedel.