Subrings of zero-dimensional rings