When it reaches a full charge, the light on your MagSafe adapter will turn green. This indicates that it has stopped charging your battery and you are now running on A/C power with a fully charged battery. It will not overcharge your battery. It's also perfectly safe to let your Mac notebook sleep with A/C plugged in.