--- src/ewf.c.orig 2018-10-04 09:27:09.000000000 -0700 +++ src/ewf.c 2018-10-04 09:27:48.000000000 -0700 @@ -72,6 +72,8 @@ #include "log.h" #include "hdaccess.h" +#define LIBEWF_OPEN_READ_WRITE (LIBEWF_ACCESS_FLAG_READ|LIBEWF_ACCESS_FLAG_WRITE) + extern const arch_fnct_t arch_none; static const char *fewf_description(disk_t *disk); @@ -406,7 +408,7 @@ struct info_fewf_struct *data=(struct info_fewf_struct *)disk->data; int64_t taille; #if defined( HAVE_LIBEWF_V2_API ) - taille = libewf_handle_read_random( + taille = libewf_handle_read_buffer_at_offset( data->handle, buffer, count, @@ -437,7 +439,7 @@ struct info_fewf_struct *data=(struct info_fewf_struct *)disk->data; int64_t taille; #if defined( HAVE_LIBEWF_V2_API ) - taille = libewf_handle_write_random( + taille = libewf_handle_write_buffer_at_offset( data->handle, buffer, count,