aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-09-25 18:01:23 +0200
committerBjörn-Egil Dahlberg <[email protected]>2012-09-25 18:01:23 +0200
commitd6089c81ce6d3184738be4f936e2cbd5008e077f (patch)
tree25a3a84235e7f43dfaf4bf33a2c506a249abe97d /erts/emulator/beam/erl_process.c
parentec28e2668b2e45d70efeb0005dcb2a70766cc7cb (diff)
parent32286d6523d0f46163f1c5e23253516d61c46c78 (diff)
downloadotp-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/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index c58bf40435..ddc43e621d 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -9453,7 +9453,7 @@ stack_element_dump(int to, void *to_arg, Process* p, Eterm* sp, int yreg)
erts_print(to, to_arg, "\n%p ", sp);
} else {
char sbuf[16];
- sprintf(sbuf, "y(%d)", yreg);
+ erts_snprintf(sbuf, sizeof(sbuf), "y(%d)", yreg);
erts_print(to, to_arg, "%-8s ", sbuf);
yreg++;
}