summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Lemenkov <lemenkov@redhat.com>2016-12-14 16:11:36 +0100
committerPeter Lemenkov <lemenkov@redhat.com>2016-12-14 16:11:36 +0100
commitba0d0533bf8aab7938796ddca3987fc5ed776cb7 (patch)
treed3b50825d78bda51c0b9855b886f1bbbbe5ad0f6
parent07acab217924cd5cb4f3e77f2ceb159cac137ff1 (diff)
downloaderlang-sd_notify-ba0d0533bf8aab7938796ddca3987fc5ed776cb7.tar.gz
Fix another one typo
Signed-off-by: Peter Lemenkov <lemenkov@redhat.com>
-rw-r--r--c_src/sd_notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/sd_notify.c b/c_src/sd_notify.c
index 9edf737..19425b2 100644
--- a/c_src/sd_notify.c
+++ b/c_src/sd_notify.c
@@ -45,7 +45,7 @@ static ERL_NIF_TERM sd_pid_notify_with_fds_nif(ErlNifEnv* env, int argc, const E
enif_get_string(env, argv[2], state, length, ERL_NIF_LATIN1);
enif_get_list_length(env, argv[3], &length);
- int* fds = (int*)enif_alloc(++length * sizeof(int));
+ int* fds = (int*)enif_alloc(length * sizeof(int));
ERL_NIF_TERM list = argv[3];
int i = 0;
while(enif_get_list_cell(env, list, &head, &tail)) {