A San Francisco man was sentenced on Thursday to three months in federal prison for buying Marvel Entertainment Inc. stock just before its $4.64 billion sale to The Walt Disney Co. based on what prosecutors alleged were insider tips from his girlfriend.

Toby Scammell, 29, who pleaded guilty to one count of insider trading, begins his prison sentence on Sept. 22, followed by six months of home confinement.