Skip to content

Commit

Permalink
Merge pull request #19 from gdsfh/patch-1
Browse files Browse the repository at this point in the history
fixed getting of string/bytes options
  • Loading branch information
andersfugmann committed Jun 12, 2014
2 parents 5f2b876 + 9a2c562 commit 300fca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/caml_zmq_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ CAMLprim value caml_zmq_get_bytes_option(value socket, value option_name) {
buffer,
&buffer_size);
caml_zmq_raise_if(result == -1, "zmq_getsockopt");
buffer[result] = '\0';
buffer[buffer_size] = '\0';
CAMLreturn (caml_copy_string(buffer));
}

Expand Down

0 comments on commit 300fca7

Please sign in to comment.