27 lines
749 B
Diff
27 lines
749 B
Diff
--- tsk/img/ewf.cpp
|
|
+++ tsk/img/ewf.cpp
|
|
@@ -64,7 +64,7 @@ ewf_image_read(TSK_IMG_INFO * img_info, TSK_OFF_T offset, char *buf,
|
|
|
|
tsk_take_lock(&(ewf_info->read_lock));
|
|
#if defined( HAVE_LIBEWF_V2_API )
|
|
- cnt = libewf_handle_read_random(ewf_info->handle,
|
|
+ cnt = libewf_handle_read_buffer_at_offset(ewf_info->handle,
|
|
buf, len, offset, &ewf_error);
|
|
if (cnt < 0) {
|
|
char *errmsg = NULL;
|
|
--- tsk/img/ewf.h
|
|
+++ tsk/img/ewf.h
|
|
@@ -20,9 +20,9 @@
|
|
|
|
#include <libewf.h>
|
|
|
|
-// libewf version 2 no longer defines LIBEWF_HANDLE
|
|
+// libewf version 2 no longer defines LIBEWF_OPEN_READ_WRITE
|
|
#undef HAVE_LIBEWF_V2_API
|
|
-#if !defined( LIBEWF_HANDLE )
|
|
+#if !defined( LIBEWF_OPEN_READ_WRITE )
|
|
#define HAVE_LIBEWF_V2_API
|
|
#endif
|
|
|
|
|