Replaced atooi() with strtoul(..., 8). That's part of C89 and thus okay for us.