Automorphisms which centralize a Sylow p-subgroup