diff options
author | Loïc Hoguin <[email protected]> | 2015-10-27 12:57:48 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-10-27 12:57:48 +0100 |
commit | 2aca9b65ef1edbcc42ade028fc4ffb7c3d13a251 (patch) | |
tree | 41c6c6d93317c76972f577246d3631a4ee402408 /system/doc/tutorial/ei.c | |
parent | a76cc1d337c0bf44ecefebeccac2d08e496ba7e8 (diff) | |
download | otp-2aca9b65ef1edbcc42ade028fc4ffb7c3d13a251.tar.gz otp-2aca9b65ef1edbcc42ade028fc4ffb7c3d13a251.tar.bz2 otp-2aca9b65ef1edbcc42ade028fc4ffb7c3d13a251.zip |
Fix weird strncmp length in erl_interface example
Diffstat (limited to 'system/doc/tutorial/ei.c')
-rw-r--r-- | system/doc/tutorial/ei.c | 2 |
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)); } |