Germaine Benjamin, who pleaded no contest to felony possession of a firearm with a gang enhancement on May 10, received the jail sentence and three years' probation from San Mateo County Superior Court Judge Susan Etezadi.
Benjamin was accused of bringing a gun to campus on Sept. 2, the day a shooting occurred that injured his friend, 20-year-old Eric Brewer. Benjamin was not the shooter.
Brewer was shot in the buttocks at about 1:30 p.m. in a campus parking lot during a confrontation between two groups of people. He was taken to San Francisco General Hospital and released within days.
At his sentencing, Benjamin was given credit for having served 48 days in jail.
He is free on a $50,000 bail bond and was ordered to surrender to the county jail on Aug. 28 at 10 a.m.