From 6b98b0991528daa601e3b732b92c343d2752749f Mon Sep 17 00:00:00 2001 From: lottaviano Date: Fri, 18 Sep 2009 09:35:40 +0000 Subject: [PATCH] Use old default value for formatwr buffer. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2965 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cfg/cfg_formatwr.h | 2 +- bertos/mware/formatwr.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bertos/cfg/cfg_formatwr.h b/bertos/cfg/cfg_formatwr.h index 0325a100..10d41b48 100644 --- a/bertos/cfg/cfg_formatwr.h +++ b/bertos/cfg/cfg_formatwr.h @@ -61,7 +61,7 @@ * $WIZ$ type = "int" * $WIZ$ min = 4 */ -#define CONFIG_FRMWRI_BUFSIZE 100 +#define CONFIG_FRMWRI_BUFSIZE 134 #endif /* CFG_FORMATWR_H */ diff --git a/bertos/mware/formatwr.c b/bertos/mware/formatwr.c index 5b2323d8..996f8df0 100644 --- a/bertos/mware/formatwr.c +++ b/bertos/mware/formatwr.c @@ -106,7 +106,6 @@ /* 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 @@ -114,7 +113,7 @@ * space for: sign + all 38 digits + '.' + 6 decimal digits (default) * Use a high value to avoid unexpected buffer overflows. */ - #define FRMWRI_BUFSIZE 100 + #define FRMWRI_BUFSIZE 134 #endif #else #if CONFIG_FRMWRI_BUFSIZE -- 2.25.1