aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src/connect
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-03-24 17:12:44 +0100
committerHenrik Nord <[email protected]>2011-03-24 17:15:38 +0100
commit4370c71db54a62fa42100469921d66581f7f9a68 (patch)
tree2273bf8e41dec1a9a07d87b3a6f4a80c578e3260 /lib/erl_interface/src/connect
parentd9932cbb82954532fb39ffaa05cde74a6ec8869c (diff)
parent6228f215f1a99ab282688516d3d577295fa8ef5a (diff)
downloadotp-4370c71db54a62fa42100469921d66581f7f9a68.tar.gz
otp-4370c71db54a62fa42100469921d66581f7f9a68.tar.bz2
otp-4370c71db54a62fa42100469921d66581f7f9a68.zip
Merge branch 'cg/fix-sizeof-array-arg' into dev
* cg/fix-sizeof-array-arg: Fix using sizeof() for array given as function argument OTP-9151
Diffstat (limited to 'lib/erl_interface/src/connect')
-rw-r--r--lib/erl_interface/src/connect/ei_connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/erl_interface/src/connect/ei_connect.c b/lib/erl_interface/src/connect/ei_connect.c
index 158c1ec430..34362b4b9f 100644
--- a/lib/erl_interface/src/connect/ei_connect.c
+++ b/lib/erl_interface/src/connect/ei_connect.c
@@ -1197,7 +1197,7 @@ static char *hex(char digest[16], char buff[33])
char *p = buff;
int i;
- for (i = 0; i < sizeof(digest); ++i) {
+ for (i = 0; i < 16; ++i) {
*p++ = tab[(int)((*d) >> 4)];
*p++ = tab[(int)((*d++) & 0xF)];
}