Jack Eichel scored at 1:10 of overtime to give the Buffalo Sabres a 4-3 victory over the Calgary Flames on Wednesday night.

Seconds after putting a backhand off the post, the Buffalo captain beat goalie Dave Rittich with a low shot to the glove side.

Jake McCabe, Evan Rodrigues and Rasmus Dahlin also scored and Linus Ullmark made 30 saves to help Buffalo snap a four-game skid and end Calgary's five-game winning streak.

Buffalo Sabres goalie Linus Ullmark, left, of Sweden, guards the net as Calgary Flames' Mark Jankowski tries to score on a breakaway during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)

Buffalo Sabres goalie Linus Ullmark, left, of Sweden, guards the net as Calgary Flames' Mark Jankowski tries to score on a breakaway during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)

Johnny Gaudreau had a goal and an assist for the Flames, and Matthew Tkachuk and Noah Hanifin also scored. Rittich made 19 saves.

Hanifin tied it midway through the third with a wrist shot from the top of the faceoff circle.

NOTES: Gaudreau became the third-fastest player in Flames history to reach the 70-point mark, doing it in his 48th game of the season. Kent Nilsson did it in 46 games in 1980-81, and Bob MacMillan in 47 in 1978-79. ... Calgary defenseman Travis Hamonic (family illness) and forward James Neal (illness) were scratched.

Buffalo Sabres' Evan Rodrigues, left, checks Calgary Flames' Austin Czarnik during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)

Buffalo Sabres' Evan Rodrigues, left, checks Calgary Flames' Austin Czarnik during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)

UP NEXT:

Sabres: At Vancouver on Friday night.

Flames: Host Detroit on Friday night.

More AP NHL: https://apnews.com/tag/NHL and https://twitter.com/AP_Sports

Buffalo Sabres goalie Linus Ullmark, left, of Sweden, guards the net as Calgary Flames' Garnet Hathaway tries to score on a breakaway during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)

Buffalo Sabres goalie Linus Ullmark, left, of Sweden, guards the net as Calgary Flames' Garnet Hathaway tries to score on a breakaway during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)

Buffalo Sabres' Johan Larsson, left, of Sweden, tries to get at the puck as Calgary Flames' Oliver Kylington, center, of Sweden, and goalie David Rittich, of the Czech Republic, defend the net during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)

Buffalo Sabres' Johan Larsson, left, of Sweden, tries to get at the puck as Calgary Flames' Oliver Kylington, center, of Sweden, and goalie David Rittich, of the Czech Republic, defend the net during the first period of an NHL hockey game, Wednesday, Jan. 16, 2019, in Calgary, Alberta. (Jeff McIntoshThe Canadian Press via AP)