Skip to content

Commit 4868273

Browse files
committed
std: Up vec.with_c_str's stack buffer to 128
This matches @graydon's recommendation.
1 parent ca66b81 commit 4868273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/c_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ impl<'self> ToCStr for &'self str {
250250
}
251251

252252
// The length of the stack allocated buffer for `vec.with_c_str()`
253-
static BUF_LEN: uint = 32;
253+
static BUF_LEN: uint = 128;
254254

255255
impl<'self> ToCStr for &'self [u8] {
256256
fn to_c_str(&self) -> CString {

0 commit comments

Comments
 (0)