Olympic athlete Oscar Pistorius has been found guilty of murder after a South African appeals court overturned an earlier manslaughter verdict.
He killed his girlfriend Reeva Steenkamp in February 2013 after shooting her four times through a locked toilet door.
He is currently under house arrest after spending one year of his original five-year sentence in jail.
Pistorius will have to return to court to be re-sentenced, for murder.
South Africa’s Supreme Court of Appeal ruled that the lower court did not correctly apply the rule of dolus eventualis – whether Pistorius knew that a death would be a likely result of his actions.
The minimum sentence for murder is 15 years but judges can apply some discretion.
South African law does not make provision for someone to be placed under house arrest for more than five years, so Pistorius will be going back to prison, reports the BBC’s Pumza Fihlani in Johannesburg.
Leach said that having armed himself with a high-calibre weapon, Pistorius must have foreseen that whoever was behind the door might die.
Pistorius always maintained that he believed there was an intruder in the house but the judge said that the identity of the person behind the door was “irrelevant to his guilt”.
Justice Leach compared it to someone setting off a bomb in a public place not knowing who the victims might be.
He also rejected the argument that Pistorius had acted in self-defence.
The judge argued that his life was not in danger at the time of the shooting, as Pistorius did not know who was behind the door or if they posed a threat.
He added that Pistorius did “not take that most elementary precaution of firing a warning shot”.
Pistorius did not attend the hearing in Bloemfontein.
But Ms Steenkamp’s mother, June, was present and afterwards she was seen outside the court being embraced by members of the African National Congress Women’s League, who were singing songs of celebration.
The double amputee was released from prison on 19 October. Under South African law, he was eligible for release under “correctional supervision”, having served a sixth of his sentence.
Pistorius can challenge the ruling in the constitutional court but only if his lawyers can argue that his constitutional rights have been violated.
Legal expert Mannie Witz told the BBC that there do not appear to be any grounds for such an appeal.