std: Up vec.with_c_str's stack buffer to 128
This matches @graydon's recommendation.
This commit is contained in:
parent
ca66b81283
commit
4868273d97
@ -250,7 +250,7 @@ impl<'self> ToCStr for &'self str {
|
||||
}
|
||||
|
||||
// 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user