OPINION
Opinion by:
Afi-ed Morfin (“Morfin”) appeals his conviction for the offense of possession of cocaine. Morfin entered a plea of nolo *666 contendere pursuant to a plea bargain agreement following the trial court’s denial of his motion to suppress. Morfín asserts nine points of error relating to the legality of the search that resulted in the discovery of the cocaine and to the sufficiency of the evidence to support his plea. We overrule Morfin’s contentions as to the trial court’s ruling on his motion to suppress, and we do not have jurisdiction to reach Morfin’s contention as to the sufficiency of the evidence. We reform the trial court’s judgment to reflect the sentence orally pronounced, and we affirm the trial court’s judgment as reformed.
Factual and Procedural Background
The only witness to testify at the hearing on Morfin’s motion to suppress was the arresting officer, Kerry Keene. Keene testified that he was on routine patrol when he observed Morfin and another individual parked in a car in an area that was one block outside of a very high crime area and one block away from a bar that was a Mexican Mafia hangout. Keene had responded to calls from the bar for everything from murder to public intoxication. Keene was uncertain whether the ear was parked with traffic or against traffic. Keene testified that he stopped to see if the individuals were “committing any crimes, or if they lived in the area, had problems, if they were broken down or what was wrong.” When Keene pulled behind the car and illuminated the car with his spotlight, he observed Morfin, who was in the passenger seat, fumbling with something on the floorboard. As Keene was checking for identification, he noticed a bullet on top of the console of the car. Keene had the individuals step out of the car to ensure that they did not have any weapons. After frisking them for weapons, Keene looked in the area where he observed Morfin fumbling with something to see if Morfin was hiding a gun. Keene stated that he was checking the area for his safety and to make sure that nobody would get hurt. Keene observed a twelve-pack of beer on the floorboard and checked inside for a gun. When Keene moved the carton, he found a small baggy underneath it containing a controlled substance. Keene was not cross-examined. At the end of Keene’s testimony, the trial court denied Morfin’s motion to suppress.
Morfin pled nolo contendere to the charges and was sentenced within the terms of his plea agreement to six months in the Bexar County Jail, probated for one year. Morfin subsequently filed a motion in arrest of judgment or motion for new trial, alleging that the evidence was insufficient to support his plea. At the hearing, Morfin’s attorney argued that there was no evidence that the controlled substance seized by Keene was the same controlled substance tested by the lab. The trial court denied the motion, and Morfin timely filed this appeal.
Motion to Suppress
In his first eight points of error, Morfin challenges the search that led to the seizure of the cocaine. Morfin alleges that Keene’s initial approach of the car was illegal, his search of Morfin for weapons was illegal, and his search of the car was illegal. The State responds that Morfin lacks standing to challenge the search. In the alternative, the State asserts that the search and seizure were legal.
In reviewing the trial court’s ruling on a motion to suppress, we afford deference to the trial court’s determination of the historical facts, but we decide
de novo
whether the trial court erred in misapplying the law to the facts.
Guzman v. State,
A passenger in a vehicle does not have a legitimate expectation of privacy in a vehicle if he fails to assert a possessory interest in the vehicle or the property
*667
seized.
1
See Meeks v. State,
Although Keene stated that he approached the car to determine whether the occupants were committing any crimes, his overall concern was that something was wrong. In considering whether Keene’s actions were reasonable in response to his concern that the occupants were having car trouble, we must determine whether Keene’s actions were appropriate under the “community caretaking function” exception to the warrant requirement.
Wright v. State,
In analyzing whether Keene’s actions were appropriate in response to his concern that the occupants were committing crimes, we apply the standard applicable to investigative detentions.
See Trinh,
Having determined that Keene’s initial approach of the vehicle was reasonable, we must determine whether Keene’s decision to remove Morfin from the ear and to search his person was justified. Law enforcement personnel may-conduct a limited search for weapons of a person’s outer clothing, even in the absence of probable cause, when the person was legally stopped and the officer reasonably believes that the person may be armed and dangerous.
See Carmouche v. State,
Morfin’s first eight points of error are overruled.
Motion FOR New Trial
In his ninth point of error, Morfin contends that the trial court erred in denying his motion for new trial that challenged the sufficiency of the evidence to support his plea. The State responds that we do not have jurisdiction to consider this issue.
Because the trial court’s sentence did not exceed the sentence recommended by the prosecutor and agreed to by Morfin, and because the trial court did not grant Morfin permission to appeal, Morfin could only appeal issues relating to the ruling on Morfin’s written pre-trial motion as specified in his notice of appeal, the voluntariness of his plea, or jurisdictional defects.
See
Tex.R.App.P. 25.2(b)(3);
Luna v. State,
During oral argument, Mor-fin’s attorney contended that the trial court did not comply with the plea bargain because the plea bargain required that Morfin be sentenced to six months in the Bexar County Jail, rather than in a state jail facility. The State conceded that Mor-fin should have been sentenced to the Bex-ar County Jail; however, the State noted that the trial court’s oral pronouncement of sentence was for six months in the Bexar County Jail, probated for one year. We have reviewed the reporter’s record and agree with the State. The trial court’s oral pronouncement of sentence did not exceed the punishment recommended by the prosecutor and agreed to by Morfin. The trial court’s oral pronouncement controls over the written judgment.
See Coffey v. State,
Conclusion
The trial court’s judgment is reformed to reflect the sentence orally pronounced by the trial court which was six months confinement in the Bexar County Jail, probated for one year. The trial court’s judgment is affirmed as reformed.
Notes
. Although Morfin’s attorney argued during oral argument that Morfin asserted an ownership interest in the vehicle in his motion to suppress, we have reviewed the motion and have determined that it does not contain such an assertion.
