Graeme Smith scored his 26th Test ton to lead South Africa's strong reply to Australia's 550 on the second day of the second Test in Adelaide.
Morne Morkel cleaned up the Australian tail to help South Africa stage a brilliant fightback; he took five wickets.
Autralian bowlers didn't get much help from the wicket and Pattinson gave away too many runs.
Smith, who got a reprieve on 46 when Matthew Wade missed a stumping chance off Michael Clarke, added 138 runs with Alviro Petersen for the opening stand before the latter ran himself out for 54.
David Warner was the only successfull bowler for Australia as he picked the wicket of Hashim Amla.
The visitors were 217 for 2 at the close of play with Smith (111) and Jacques Rudolph (25) at the crease.