Homebuyers notice fresh paint on a house they’re buying—then the inspector finds rotting wood underneath