Same. It's a foul by the team not in possession, so enforcement is from the basic spot. The basic spot on a running play is the end of the run. The end of the run is spot of the fumble. Most casual fans will think this is a safety since A fouled in their own end zone, but it's not.