Southern California firefighters were gaining ground on a wildfire that ravaged more than 130 structures.