If the bolt is too short why not try raising the latch plate?
I'd try putting some washers under the plate until it latched. If it took more than two I'd start investigating why things aren't the way they should be.
I'm assuming that your latch looks like
THIS