A judge on Monday sentenced the former chief compliance officer for a Buffalo, New York, registered investment adviser to three years in prison for stealing more than a half-million dollars from the company and its clients, many of them elderly.