aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-22 08:45:48 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-07-22 08:45:48 +0000
commit546f0c3c31e44d12859a8a114b4c404a9e5777a9 (patch)
tree5c51dc9afbb45cb99f4a3f558456fbb4a3c764f6
parentd2aacb2d69cface3ba239d160c99b1fb172574c9 (diff)
downloadChibiOS-546f0c3c31e44d12859a8a114b4c404a9e5777a9.tar.gz
ChibiOS-546f0c3c31e44d12859a8a114b4c404a9e5777a9.tar.bz2
ChibiOS-546f0c3c31e44d12859a8a114b4c404a9e5777a9.zip
Float tentative fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4476 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/various/chprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/various/chprintf.c b/os/various/chprintf.c
index 2e03fe9c2..5920948e0 100644
--- a/os/various/chprintf.c
+++ b/os/various/chprintf.c
@@ -111,13 +111,15 @@ static char *ftoa(char *p, double num) {
*/
void chprintf(BaseSequentialStream *chp, const char *fmt, ...) {
va_list ap;
- char tmpbuf[MAX_FILLER + 1];
char *p, *s, c, filler;
int i, precision, width;
bool_t is_long, left_align;
long l;
#if CHPRINTF_USE_FLOAT
float f;
+ char tmpbuf[2*MAX_FILLER + 1];
+#else
+ char tmpbuf[MAX_FILLER + 1];
#endif
va_start(ap, fmt);