Fix GCC compile issue

This commit is contained in:
2017-04-26 01:55:38 -05:00
parent 1b6eee4d85
commit a916205cdb
+2 -1
View File
@@ -136,7 +136,7 @@ map<string, int(*)(string)> tests = {
auto path = "/usr/share/test.txt";
auto dataIn = "test string";
auto dataOutLen = ox_strlen(dataIn) + 1;
char dataOut[dataOutLen];
auto dataOut = new char[dataOutLen];
const auto size = 1024 * 1024 * 10;
auto buff = new uint8_t[size];
@@ -153,6 +153,7 @@ map<string, int(*)(string)> tests = {
delete fs;
delete []buff;
delete []dataOut;
return retval;
}