What should I do if my dog's legs are not straight?

The dogs were good when they bought it, but the longer the legs became more curved. I didn't see this situation when I walked the dog! What should I do?