Sri Lanka have reached stumps on day two of the second Test against South Africa in Galle on 30-0 in response to the Proteas' 455-9/d.
Resuming on 414-8 after tea, South Africa continued to bat well with Morne Morkel acting as a fine foil for Jean-Paul Duminy, who was looking for his century.
Morkel managed 22 runs before being bowled by Dilruwan Perera, but captain Hashim Amla called an end to the innings once Duminy hit his 100 off 202 deliveries.
The declaration meant that Sri Lanka needed to survive a difficult 12 overs at the end of the day, but they managed it well with Upul Tharanga making 20 and Kaushal Silva a more conservative eight to reach stumps without loss.