Quinton de Kock led South Africa to a comfortable four-wicket win against Sri Lanka in their second one-day international in Dambulla.
Wicket-keeper de Kock struck 87 off 78 balls, including one six and 13 fours, to help South Africa reach 246 for six in the 43rd over in reply to the hosts' 244 for eight.
The tourists, who won the opening ODI by five wickets at the same venue on Sunday, lead the five-match series 2-0.
South Africa bowlers Andile Phehlukwayo (three for 44) and Lungi Ngidi (three for 50) did most to keep Sri Lanka in check, with Niroshan Dickwella (69) and skipper Angelo Mathews (79 not out) the only home batsmen to impress.
De Kock and fellow opener Hashim Amla (43) then took advantage of some shoddy Sri Lankan fielding - they were both dropped, by Kusal Perera and Akila Dananjaya respectively - as they posted 91 for the opening wicket.
Amla's dismissal, caught and bowled by Dananjaya, was quickly followed by that of Aiden Markram and De Kock was caught by Suranga Lakmal off Kasun Rajitha in the 27th over to leave South Africa on 162 for three.
But captain Faf du Plessis (49) and JP Duminy (32) kept the Proteas on course and it was left to Willem Mulder (19 not out) to hit the winning boundary.