mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Add read_entire to FFI
a
This commit is contained in:
@@ -254,7 +254,7 @@ int main(int argc, char **argv) {
|
||||
} else {
|
||||
uint8_t *data = NULL;
|
||||
size_t length = 0;
|
||||
err = afc_file_read(file, &data, &length);
|
||||
err = afc_file_read_entire(file, &data, &length);
|
||||
if (err == NULL) {
|
||||
if (write_file(dest_path, data, length)) {
|
||||
printf("File downloaded successfully\n");
|
||||
|
||||
Reference in New Issue
Block a user