diff options
author | Björn-Egil Dahlberg <[email protected]> | 2012-09-07 15:21:13 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2012-09-07 17:01:08 +0200 |
commit | 32286d6523d0f46163f1c5e23253516d61c46c78 (patch) | |
tree | 6011f537893669d88523beedfc7eadc5040b739e /erts/emulator/beam/erl_process_dump.c | |
parent | 7bd69516a3cab79f869fde5787140ae810c35ef8 (diff) | |
download | otp-32286d6523d0f46163f1c5e23253516d61c46c78.tar.gz otp-32286d6523d0f46163f1c5e23253516d61c46c78.tar.bz2 otp-32286d6523d0f46163f1c5e23253516d61c46c78.zip |
Replace sprintf with erts_snprintf in beam
Diffstat (limited to 'erts/emulator/beam/erl_process_dump.c')
-rw-r--r-- | erts/emulator/beam/erl_process_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_process_dump.c b/erts/emulator/beam/erl_process_dump.c index 964dc1ae3e..542c5ed0d9 100644 --- a/erts/emulator/beam/erl_process_dump.c +++ b/erts/emulator/beam/erl_process_dump.c @@ -323,7 +323,7 @@ heap_dump(int to, void *to_arg, Eterm x) int i; GET_DOUBLE_DATA((ptr+1), f); - i = sys_double_to_chars(f.fd, (char*) sbuf); + i = sys_double_to_chars(f.fd, (char*) sbuf, sizeof(sbuf)); sys_memset(sbuf+i, 0, 31-i); erts_print(to, to_arg, "F%X:%s\n", i, sbuf); *ptr = OUR_NIL; |