For a hinge that extends too far into the door opening, you can either deepen the mortise (the little wooden pocket that the hinge plate sits in on the door frame) or shim the other hinge to extend it further into the doorway. Which is better depends upon the fit of the door in the frame. If shimming will cause the door to bind, then deepening the mortise may be the better choice.
Adjusting the hinge will require you to remove the door. Because doors can be quite heavy and are generally unwieldy, always work with an assistant when removing the door. To remove the door, place some magazines under to support its weight. Remove the bottom hinge pin first, then the middle finally the top. The hinge is removed by sliding it up and out of the hinge plate knuckles. If it has a bottom finial, remove the finial first by unscrewing it. If the hinge pin cannot be pulled out, use a nail set at the bottom of the pin and tap it out with a hammer.
With the hinge pins removed, slide the door away from the door frame and set the door aside. Unscrew the hinge plate and insert a shim made from cardboard or chisel out a small amount of wood to deepen or shift the mortise. Replace the door and slip the top hinge pin in first, then the bottom then the middle. Check that the door can close properly then check that it will stand in any position it is placed. Repeat the steps as necessary to fine tune the adjustment.