A few years ago I helped a friend get a replacement hanger, and we went by the shape, but when it came in, the supplied bolts with the new one weren't as long as the original. She went to a store where I believe they had some longer bolts. ( Teeny tiny things btw)
So be careful, and if you think that this sort of thing could happen again, it might be worth getting two of them.