Burnt wires

Dryer was not heating. Pulled off the front cover and the insulation on the Black wire that connects to the Terminal Insulator on the left side of the Heater Chamber was burnt about 2" up and had broken at the solderless connector.

I trimmed off the burnt portion of the wire and replaced the solderless connector and the dryer works again. However, that does not fix whatever caused the wire to burn up in the first place. It is making me a little nervous b/c I have a friend who just lost his house due to a bad dryer repair job. Does anyone have an idea what might have caused this?

The burning may have been caused by an overheating condition, or by a build-up of lint. Make sure the dryer is clean, especially in the heater area, and there is no lint clogging or restriction the vent. If this does not correct the overheating, replace the cycling thermostat. This is the one with four wires attached to it. My SOP is to replace all the thermostats at the same time.