We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36f9054 commit c86f493Copy full SHA for c86f493
vendor/ehs/datum.cpp
@@ -3,6 +3,9 @@
3
#include <stdio.h>
4
#include <stdlib.h>
5
#include <string.h>
6
+
7
+#define DATUM_BUFFER_SIZE 350
8
9
#ifdef _WIN32
10
#define strcasecmp stricmp
11
#endif
@@ -25,8 +28,8 @@ Datum & Datum::operator= ( int inInt )
25
28
}
26
29
Datum & Datum::operator= ( double inDouble )
27
30
{
- char psBuffer [ 100 ];
- sprintf ( psBuffer, "%lf", inDouble );
31
+ char psBuffer [ DATUM_BUFFER_SIZE ];
32
+ snprintf ( psBuffer, DATUM_BUFFER_SIZE, "%lf", inDouble );
33
sDatum = psBuffer;
34
return *this;
35
0 commit comments