Update POCO library.

This commit is contained in:
Sandu Liviu Catalin committed 2023-03-23 20:19:11 +02:00
1 parent 8d15f4b6e9
commit 233fc103f9
2521 files changed
+257092 -72789

No files matched your search

+5 -5
View File
@@ -28,29 +28,29 @@ int main(int argc, char** argv)
<< " read deflated (compressed) <input_file>, inflate it and write the result to <output_file>" << std::endl;
return 1;
}
std::ifstream istr(argv[1], std::ios::binary);
if (!istr)
{
std::cerr << "cannot open input file: " << argv[1] << std::endl;
return 2;
}
std::ofstream ostr(argv[2], std::ios::binary);
if (!ostr)
{
std::cerr << "cannot open output file: " << argv[2] << std::endl;
return 3;
}
InflatingInputStream inflater(istr);
StreamCopier::copyStream(inflater, ostr);
if (!ostr)
{
std::cerr << "error writing output file: " << argv[2] << std::endl;
return 4;
}
return 0;
}