aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2015-11-03 12:58:51 +0100
committerHenrik Nord <[email protected]>2015-11-03 12:58:51 +0100
commit82393fda2f44841663b23c95879212f339a56474 (patch)
tree27726c178552dcb88e333ae052454ffe481f0b6e
parentfae1827988e4c833adfd569580522afd317bed60 (diff)
parent2aca9b65ef1edbcc42ade028fc4ffb7c3d13a251 (diff)
downloadotp-82393fda2f44841663b23c95879212f339a56474.tar.gz
otp-82393fda2f44841663b23c95879212f339a56474.tar.bz2
otp-82393fda2f44841663b23c95879212f339a56474.zip
Merge branch 'essen/weird-strncmp-len' into maint
* essen/weird-strncmp-len: Fix weird strncmp length in erl_interface example OTP-13081
-rw-r--r--system/doc/tutorial/ei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/doc/tutorial/ei.c b/system/doc/tutorial/ei.c
index b234a00768..c33e3fb78e 100644
--- a/system/doc/tutorial/ei.c
+++ b/system/doc/tutorial/ei.c
@@ -21,7 +21,7 @@ int main() {
if (strncmp(ERL_ATOM_PTR(fnp), "foo", 3) == 0) {
res = foo(ERL_INT_VALUE(argp));
- } else if (strncmp(ERL_ATOM_PTR(fnp), "bar", 17) == 0) {
+ } else if (strncmp(ERL_ATOM_PTR(fnp), "bar", 3) == 0) {
res = bar(ERL_INT_VALUE(argp));
}