Sri Lanka showed resilience with the bat in the evening session on day four of their first Test against South Africa in Galle as they reached 110-1 at the close of play.
Having opened up a 369-run lead by tea, the tourists declared during the interval to bring Sri Lanka to the crease for the final session of the day.
South Africa made a strong start with the ball as Dale Steyn claimed the wicket of Upal Tharanga (8) early on.
However, Kaushal Silva (37 not out) and Kumar Sangakkara (58 not out) formed a solid partnership, with the latter completing his half-century shortly before stumps.
Despite South Africa pressing hard for a breakthrough in the final couple of overs, Sangakkara and Silva played sensibly, ensuring that both sides remain in contention ahead of the final day of the match.