From 8448a0babc248cf22ba52e6beb7da231c8c625ec Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 2 Oct 2018 17:13:53 +0200
Subject: doctranslator: fix gcc7 build.


diff --git a/DOCTranslator.cpp b/DOCTranslator.cpp
index 4dc4720..34b2e95 100644
--- a/DOCTranslator.cpp
+++ b/DOCTranslator.cpp
@@ -15,6 +15,8 @@
 #include <File.h>
 #include <FindDirectory.h>
 
+using namespace std;
+
 #undef B_TRANSLATION_CONTEXT
 #define B_TRANSLATION_CONTEXT "DOCTranslator"
 
@@ -236,7 +238,7 @@ DOCTranslator::DerivedTranslate(BPositionIO *inSource,
 	// Read the whole input into a buffer
 	off_t *bufferSize;
 	inSource->GetSize(bufferSize);
-	uint8 fileBuffer[*bufferSize];
+	char fileBuffer[*bufferSize];
 	inSource->Read(&fileBuffer, *bufferSize);
 
 
@@ -247,7 +249,7 @@ DOCTranslator::DerivedTranslate(BPositionIO *inSource,
 	{
 		return B_ERROR;
 	}
-	inputFile.write(&fileBuffer, *bufferSize);
+	inputFile.write(fileBuffer, *bufferSize);
 	inputFile.close();
 
 	// Now execute antiword and have the shell dump stdout into a file
-- 
2.19.0

