Typo:


+    else wld_memmove( lbuf->base, lbuf->tail, lbuf->head - lbuf->head);