Use old default value for formatwr buffer.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Sep 2009 09:35:40 +0000 (09:35 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 18 Sep 2009 09:35:40 +0000 (09:35 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2965 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cfg/cfg_formatwr.h
bertos/mware/formatwr.c

index 0325a100c8d3c11148f89052b3d797ece800fd98..10d41b4845eb43bfaf66d4d00a5b6ed4b8d4db89 100644 (file)
@@ -61,7 +61,7 @@
  * $WIZ$ type = "int"
  * $WIZ$ min = 4
  */
-#define CONFIG_FRMWRI_BUFSIZE  100
+#define CONFIG_FRMWRI_BUFSIZE  134
 
 #endif /* CFG_FORMATWR_H */
 
index 5b2323d84a87eb432869fa0c48272099ebb799d9..996f8df04c5e7562d100f5760a86765cb8c15eb5 100644 (file)
        /* 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
                 * 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