aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/external.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-09-07 15:21:13 +0200
committerBjörn-Egil Dahlberg <[email protected]>2012-09-07 17:01:08 +0200
commit32286d6523d0f46163f1c5e23253516d61c46c78 (patch)
tree6011f537893669d88523beedfc7eadc5040b739e /erts/emulator/beam/external.c
parent7bd69516a3cab79f869fde5787140ae810c35ef8 (diff)
downloadotp-32286d6523d0f46163f1c5e23253516d61c46c78.tar.gz
otp-32286d6523d0f46163f1c5e23253516d61c46c78.tar.bz2
otp-32286d6523d0f46163f1c5e23253516d61c46c78.zip
Replace sprintf with erts_snprintf in beam
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r--erts/emulator/beam/external.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c
index 16a987472a..ab1065aaa1 100644
--- a/erts/emulator/beam/external.c
+++ b/erts/emulator/beam/external.c
@@ -1850,8 +1850,8 @@ enc_term(ErtsAtomCacheMap *acmp, Eterm obj, byte* ep, Uint32 dflags,
} else {
*ep++ = FLOAT_EXT;
- /* now the sprintf which does the work */
- i = sys_double_to_chars(f.fd, (char*) ep);
+ /* now the erts_snprintf which does the work */
+ i = sys_double_to_chars(f.fd, (char*) ep, (size_t)31);
/* Don't leave garbage after the float! (Bad practice in general,
* and Purify complains.)