X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fmware%2Fformatwr.c;h=996f8df04c5e7562d100f5760a86765cb8c15eb5;hb=6b98b0991528daa601e3b732b92c343d2752749f;hp=afc4976e269af94db0ec05c25d731364fa8e0101;hpb=34b2a78c7c59a3357d05dfff157908d5d9b98501;p=bertos.git diff --git a/bertos/mware/formatwr.c b/bertos/mware/formatwr.c index afc4976e..996f8df0 100644 --- a/bertos/mware/formatwr.c +++ b/bertos/mware/formatwr.c @@ -106,14 +106,14 @@ /* Maximum precision for floating point values */ typedef long double max_float_t; - #warning FIXME: be sure to fix buffer size below #if CONFIG_FRMWRI_BUFSIZE #define FRMWRI_BUFSIZE CONFIG_FRMWRI_BUFSIZE #else /* Conservative estimate. Max float is 3.40282e+038, so %f (but not %e or %g) must have * space for: sign + all 38 digits + '.' + 6 decimal digits (default) + * Use a high value to avoid unexpected buffer overflows. */ - #define FRMWRI_BUFSIZE 50 + #define FRMWRI_BUFSIZE 134 #endif #else #if CONFIG_FRMWRI_BUFSIZE