| Index: third_party/woff2/src/woff2_compress.cc
|
| diff --git a/third_party/woff2/src/woff2_compress.cc b/third_party/woff2/src/woff2_compress.cc
|
| index 057566f8b8c8327cb26c9122fc0f38509eb6afb9..e5cf710f793daca1a6e73830b1002759c438329b 100644
|
| --- a/third_party/woff2/src/woff2_compress.cc
|
| +++ b/third_party/woff2/src/woff2_compress.cc
|
| @@ -39,14 +39,15 @@ int main(int argc, char **argv) {
|
| string output(output_size, 0);
|
| uint8_t* output_data = reinterpret_cast<uint8_t*>(&output[0]);
|
|
|
| + woff2::WOFF2Params params;
|
| if (!woff2::ConvertTTFToWOFF2(input_data, input.size(),
|
| - output_data, &output_size)) {
|
| + output_data, &output_size, params)) {
|
| fprintf(stderr, "Compression failed.\n");
|
| return 1;
|
| }
|
| output.resize(output_size);
|
|
|
| - woff2::SetFileContents(outfilename, output);
|
| + woff2::SetFileContents(outfilename, output.begin(), output.end());
|
|
|
| return 0;
|
| }
|
|
|