summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_read_data_into_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libarchive/archive_read_data_into_buffer.c')
-rw-r--r--lib/libarchive/archive_read_data_into_buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libarchive/archive_read_data_into_buffer.c b/lib/libarchive/archive_read_data_into_buffer.c
index 0b52617..48de46a 100644
--- a/lib/libarchive/archive_read_data_into_buffer.c
+++ b/lib/libarchive/archive_read_data_into_buffer.c
@@ -27,7 +27,9 @@
#include "archive_platform.h"
__FBSDID("$FreeBSD$");
+#ifdef HAVE_STRING_H
#include <string.h>
+#endif
#include "archive.h"
@@ -37,7 +39,7 @@ archive_read_data_into_buffer(struct archive *a, void *d, ssize_t len)
char *dest;
ssize_t bytes_read, total_bytes;
- dest = d;
+ dest = (char *)d;
total_bytes = 0;
bytes_read = archive_read_data(a, dest, len);
while (bytes_read > 0) {
OpenPOWER on IntegriCloud