fix tb_vsnprintf for tb_sprintf