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:
commit
ccd6a2b9da
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user