diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-09-25 18:01:23 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-09-25 18:01:23 +0200 |
commit | d6089c81ce6d3184738be4f936e2cbd5008e077f (patch) | |
tree | 25a3a84235e7f43dfaf4bf33a2c506a249abe97d /erts/emulator/beam/external.c | |
parent | ec28e2668b2e45d70efeb0005dcb2a70766cc7cb (diff) | |
parent | 32286d6523d0f46163f1c5e23253516d61c46c78 (diff) | |
download | otp-d6089c81ce6d3184738be4f936e2cbd5008e077f.tar.gz otp-d6089c81ce6d3184738be4f936e2cbd5008e077f.tar.bz2 otp-d6089c81ce6d3184738be4f936e2cbd5008e077f.zip |
Merge branch 'egil/r16/strengthen-buffer-copies'
* egil/r16/strengthen-buffer-copies:
Replace sprintf with erts_snprintf in beam
Replace sprintf with erts_snprintf in epmd
Replace sprintf with erts_snprintf in inet_gethost
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r-- | erts/emulator/beam/external.c | 4 |
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.) |