If it's domestic to international, you're fine. You'll have connecting boarding passes and everything - no need to leave the terminal area at all.
I once did JFK-LAX-SYD on UA and the JFK-LAX was about an hour late leaving me with a four minute connection. I made it easily; walked up the ramp from the 767, turned left, handed over my connecting boarding pass and walked down the ramp to the 777 at the next gate.
So you should be okay