Former Buffalo officer sentenced to prison time