BUFFALO, N.Y. (AP) -- 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.

With his murder conviction vacated, Marcus Gottsche pleads guilty to manslaughter for shooting Jasmine Armour in '11 pic.twitter.com/NI94J26uSm — Melinda Miller (@MMillerBuff) June 8, 2016

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.