File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
32
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
- refs/heads/beta: 0c7f7a5fb8919c6a382f9acd1e921c51f807f625
34
+ refs/heads/beta: 1afe8a4fb86fe54be8008b033de166d9c1f8f650
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
Original file line number Diff line number Diff line change @@ -646,6 +646,7 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
646
646
// res
647
647
#[ cfg( target_os = "ios" ) ]
648
648
fn real_args_as_bytes ( ) -> Vec < Vec < u8 > > {
649
+ use ffi:: c_str_to_bytes;
649
650
use iter:: range;
650
651
use mem;
651
652
@@ -680,8 +681,7 @@ fn real_args_as_bytes() -> Vec<Vec<u8>> {
680
681
let tmp = objc_msgSend ( args, objectAtSel, i) ;
681
682
let utf_c_str: * const libc:: c_char =
682
683
mem:: transmute ( objc_msgSend ( tmp, utf8Sel) ) ;
683
- let s = CString :: new ( utf_c_str, false ) ;
684
- res. push ( s. as_bytes_no_nul ( ) . to_vec ( ) )
684
+ res. push ( c_str_to_bytes ( & utf_c_str) . to_vec ( ) ) ;
685
685
}
686
686
}
687
687
You can’t perform that action at this time.
0 commit comments