Buffalo posted its second straight win and just its 12th of the campaign, second fewest in the Eastern Conference.
Buffalo overcame a 2-0 deficit and took a 4-3 advantage early in the third period on the second goal of the game from Christian Ehrhoff. Nazek Kadri tied it for Toronto on the power play with 13:27 to go in regulation.
Miller had 30 saves in the victory. Reimer stopped 32 shots.
Notable deaths of 2014 [PHOTOS]
Julius Randle breaks leg during NBA debut