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_alloc.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_alloc.c')
-rw-r--r-- | erts/emulator/beam/erl_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_alloc.c b/erts/emulator/beam/erl_alloc.c index ba73ca6da7..3eee53eba3 100644 --- a/erts/emulator/beam/erl_alloc.c +++ b/erts/emulator/beam/erl_alloc.c @@ -1675,7 +1675,7 @@ erts_alc_fatal_error(int error, int func, ErtsAlcType_t n, ...) t_str = type_no_str(n); if (!t_str) { - sprintf(buf, "%d", (int) n); + erts_snprintf(buf, sizeof(buf), "%d", (int) n); t_str = buf; } @@ -3572,12 +3572,12 @@ check_memory_fence(void *ptr, Uint *size, ErtsAlcType_t n, int func) ftype = type_no_str(found_type); if (!ftype) { - sprintf(fbuf, "%d", (int) found_type); + erts_snprintf(fbuf, sizeof(fbuf), "%d", (int) found_type); ftype = fbuf; } otype = type_no_str(n); if (!otype) { - sprintf(obuf, "%d", (int) n); + erts_snprintf(obuf, sizeof(obuf), "%d", (int) n); otype = obuf; } |