Door Jam Rust Damage Advice

Hey everyone. I'm not quite sure what this it's called exactly, and I'll post a picture so you can see exactly what I'm talking about, but the part the door grabs onto to stay closed is broken. The part itself seems fine, but the metal where it's attached is broken. Sorry for my poor description, but basically I'm looking for some advice as to how to fix it? Thank You.

20161016_161227.jpg