California firefighters are gaining ground on a massive wildfire that has killed six people and destroyed hundreds of homes and businesses.