Fossils reveal a small ancient reptile related to crocodiles, Sonselasuchus cedrus, that may have switched from four legs to two as it grew.