aboutsummaryrefslogtreecommitdiffstats
path: root/erts/lib_src/common
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-01-24 14:39:54 +0100
committerSverker Eriksson <[email protected]>2018-01-24 14:39:54 +0100
commitec9af70ef85da3467913ec3adbce15ac122dcb60 (patch)
treecaa25d2aa16eff908178443f7c1f215924b8395c /erts/lib_src/common
parent4571e13801c53e1c2bbf744ab178a4a0f9f0a7cd (diff)
parent50ecc771a493c3ae7bb75a392e50dfb3c05c0ffc (diff)
downloadotp-ec9af70ef85da3467913ec3adbce15ac122dcb60.tar.gz
otp-ec9af70ef85da3467913ec3adbce15ac122dcb60.tar.bz2
otp-ec9af70ef85da3467913ec3adbce15ac122dcb60.zip
Merge branch 'maint'
Diffstat (limited to 'erts/lib_src/common')
-rw-r--r--erts/lib_src/common/erl_printf_format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/lib_src/common/erl_printf_format.c b/erts/lib_src/common/erl_printf_format.c
index 3daa066fd3..3302083288 100644
--- a/erts/lib_src/common/erl_printf_format.c
+++ b/erts/lib_src/common/erl_printf_format.c
@@ -331,7 +331,7 @@ static int fmt_double(fmtfn_t fn,void*arg,double val,
char *bufp = sbuf;
double dexp;
int exp;
- size_t max_size = 1;
+ size_t max_size = 2; /* including possible sign */
int size;
int new_fmt = fmt;
int fpe_was_unmasked;