If you have runny buttercream frosting, then all you need to do is add a bit more powdered sugar. Add more until it thickens and stabilizes.