- newOffset = mem_calloc (ctx->msgcount - first, sizeof (struct m_update_t));
- oldOffset = mem_calloc (ctx->msgcount - first, sizeof (struct m_update_t));
+ newOffset = p_new(struct m_update_t, ctx->msgcount - first);
+ oldOffset = p_new(struct m_update_t, ctx->msgcount - first);