c->map.resolved -= 3;
c->map.qlen -= 3;
/* move all other queue entries three steps to the left */
- memmove(c->map.queue->str, c->map.queue->str + 3, c->map.qlen);
+ g_string_erase(c->map.queue, 0, 3);
} else {
/* get first char of queue */
qk = c->map.queue->str[0];
c->map.qlen--;
/* move all other queue entries one step to the left */
- memmove(c->map.queue->str, c->map.queue->str + 1, c->map.qlen);
+ g_string_erase(c->map.queue, 0, 1);
}
/* remove the no-map flag */