提交 4868273d 编写于 作者: E Erick Tryzelaar

std: Up vec.with_c_str's stack buffer to 128

This matches @graydon's recommendation.
上级 ca66b812
......@@ -250,7 +250,7 @@ fn with_c_str<T>(&self, f: &fn(*libc::c_char) -> T) -> T {
}
// The length of the stack allocated buffer for `vec.with_c_str()`
static BUF_LEN: uint = 32;
static BUF_LEN: uint = 128;
impl<'self> ToCStr for &'self [u8] {
fn to_c_str(&self) -> CString {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册