A New York man who fatally shot a friend for eating his leftover sandwich has been sentenced to 22 years in prison.

The Erie County district attorney's office says 34-year-old Marcus Gottsche was sentenced Wednesday in the death of 28-year-old Jasmine Armour, of Buffalo.

Prosecutors say Gottsche and Armour spent a night drinking in February 2011 before returning to his Buffalo home. That's where a fight started after she started eating his sandwich.

Gottsche grabbed his rifle and shot Armour in the back as she tried to flee from the home.

He was convicted of murder in December 2011, but the verdict was vacated last year when a court ruled he was denied effective legal representation.

Gottsche pleaded guilty to first-degree manslaughter in June.