I think msgid needs to be heap-allocated for this to work.