Merge pull request #751 from GitPaean/fixing_over_flow_of_c_string

fixing an overflow problem in EclOutput::make_doub_string
This commit is contained in:
Kai Bao 2019-05-02 21:35:13 +02:00 committed by GitHub
commit ccd6a2b9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ std::string EclOutput::make_real_string(float value) const
std::string EclOutput::make_doub_string(double value) const
{
char buffer [20];
char buffer [21];
sprintf (buffer, "%19.13E", value);
if (value == 0.0) {