simplified some calls to mget_buffer_init() using C99