Pitt snaps 2-game skid with 20-6 win at Buffalo