Replacement buckle for a cycling helmet

Male part of a plastic buckle on a Lazer cycling helmet broke, so I made this as a replacement.

I have been using this for a while and it seems to work just as well as the original.