sbuf_uionew(): sbuf_new() takes int as length
(cherry picked from commit 116f26f947b8bbf868dcd85d79226406029a45ee)