It might be getting hot because it is not the original one and is undersized for that computer so working too hard. If you get a new one don't skimp on a smaller wattage for a couple of bucks. A larger wattage is not an issue - the computer will only draw what it needs.
I often repair and provide support for the cable on ones that are getting weak at that point with Sugru, a moldable glue/flexible plastic.
That said - Nothing beats treating a cable, any cable, well. Taking a few seconds to take care of it every time you use it brings rewards like my having some over 15 years old that show little wear. - Be careful to wrap it neatly with no sharp bends, don't use those tabs on the charger to wrap it because they cause sharp bends, don't let it get twisted and untrist it when it does, when wrapplig it make sure to let it coil as its natural lay desires and don't force it, plug it in, and unplug it carefully.