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 2
2
refs/heads/master: 73a25f55ad748b4d3516417c711b99ce446591af
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
5
- refs/heads/try: 0c7f7a5fb8919c6a382f9acd1e921c51f807f625
5
+ refs/heads/try: 1afe8a4fb86fe54be8008b033de166d9c1f8f650
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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