fix allocation sizes in regcomp
fix allocation sizes in regcomp

sizeof had incorrect argument in a few places, the size was always
large enough so the issue was not critical.

chardi/musl,chardi/musl,chardi/musl