Use RSTRING_LEN instead of _LENINT which isn't present on 1.8.7

Fixes #30
This commit is contained in:
R. Tyler Croy 2014-09-09 09:01:49 -07:00
parent 5cf9f352e1
commit 77248706e8
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ static VALUE producer_push_single(VALUE self, VALUE message, VALUE result) {
producerConfig->partition,
RD_KAFKA_MSG_F_COPY,
rb_string_value_cstr(&message),
RSTRING_LENINT(message),
RSTRING_LEN(message),
NULL,
0,
delivery_ctx)) {