File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -258,13 +258,13 @@ fn unpack_rkafp(file_path: &str, dst_path: &str) -> Result<()> {
258
258
}
259
259
create_dir_all ( format ! ( "{}/Image" , dst_path) ) ?;
260
260
unsafe {
261
- println ! ( "manufacturer: {}" , CStr :: from_ptr( header. manufacturer. as_ptr( ) as * const i8 ) . to_str( ) ?) ;
262
- println ! ( "model: {}" , CStr :: from_ptr( header. model. as_ptr( ) as * const i8 ) . to_str( ) ?) ;
261
+ println ! ( "manufacturer: {}" , CStr :: from_ptr( header. manufacturer. as_ptr( ) as * const std :: ffi :: c_char ) . to_str( ) ?) ;
262
+ println ! ( "model: {}" , CStr :: from_ptr( header. model. as_ptr( ) as * const std :: ffi :: c_char ) . to_str( ) ?) ;
263
263
}
264
264
for i in 0 ..header. num_parts {
265
265
let part = & header. parts [ i as usize ] ;
266
266
unsafe {
267
- let cstr = CStr :: from_ptr ( part. full_path . as_ptr ( ) as * const i8 ) ;
267
+ let cstr = CStr :: from_ptr ( part. full_path . as_ptr ( ) as * const std :: ffi :: c_char ) ;
268
268
let part_full_path = cstr. to_str ( ) ?;
269
269
if part_full_path == "SELF" || part_full_path == "RESERVED" {
270
270
continue ;
@@ -294,4 +294,4 @@ fn write_file(path: &Path, buffer: &[u8]) -> Result<()> {
294
294
let mut file = File :: create ( path) ?;
295
295
file. write_all ( buffer) ?;
296
296
Ok ( ( ) )
297
- }
297
+ }
You can’t perform that action at this time.
0 commit comments