Updated

Ryan Miller made 39 saves for his second shutout in as many nights and Drew Stafford capitalized on a San Jose turnover to score the only goal in the Buffalo Sabres 1-0 victory over the Sharks on Thursday night.

Stafford scored his 13th goal late in the first period and Miller made the lead stand as the Sabres earned at least one point in a season-high seventh straight game to move into 10th place in the Eastern Conference, four points behind Winnipeg for the final playoff spot.

Antti Niemi made 18 saves for the Sharks but got no help from his offense, which pressured Miller throughout the third period but was unable to get one past the Buffalo star.

Miller made 82 saves to post shutouts on consecutive nights for the second time in his career, also doing it Dec. 3-4, 2010, against Columbus and Ottawa. Miller has 27 career shutouts, including five this season.

He spent much of the third period sprawled on his back as the Sharks peppered the net with shots. His best play might have come when he broke up a pass from TJ Galiardi to fellow newcomer Daniel Winnik midway through the third.

Miller got shaken up when teammate Patrick Kaleta ran into him, but stayed in the game to help the Sabres hold on despite being outshot 28-9 over the final two periods.

The Sharks got a goal from Ryane Clowe 1:22 into a 1-0 win over the Flyers on Tuesday night, but were held off the scoreboard after that and remained in a funk that started on a 2-6-1 road trip.

San Jose missed a chance to tie Phoenix for the Pacific Division lead and has just a three-point lead over Los Angeles and Colorado for the final playoff spot in the West.

Despite outshooting Buffalo 22-14 through the first two periods, the Sharks were unable to generate many good scoring chances against Miller — even though the Sabres were coming off a game in Anaheim the previous night. San Jose managed to put some pressure on Miller during their first power play late in the period, but Miller made a key save with Joe Thornton crashing the net to preserve the 1-0 lead.

The Sabres struck after a bad turnover late in the first period by Brent Burns. Tyler Ennis took Burns' errant pass at the Buffalo blue line and headed the other direction on a three-on-two advantage. He fed Stafford, who beat Niemi with a wrist shot with 1:09 left in the first period.

Notes: The Sabres, who play a league-high 21 back-to-back games, got their third sweep in 18 sets so far this season. ... Sharks coach Todd McLellan missed his second consecutive game with concussion symptoms after being hit in the head by a stick Sunday in Minnesota. ... Sharks All-Star F Logan Couture missed his second straight game with a lower-body injury, while F Dominic Moore returned after missing four games with a lower-body injury. ... San Jose had its 100th consecutive sellout.