Fix misusage of sbuf