From: Bram Moolenaar Date: Wed, 30 Jan 2019 20:00:12 +0000 (+0100) Subject: patch 8.1.0848: cannot build with Ruby 1.8 X-Git-Tag: v8.1.0848 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b191be2f0000bf1de09a79226cfd405d9387caa3;p=vim patch 8.1.0848: cannot build with Ruby 1.8 Problem: Cannot build with Ruby 1.8. (Tom G. Christensen) Solution: Use rb-str_new2(). (Yasuhiro Matsumoto, closes #3883, closes #3884) --- diff --git a/src/if_ruby.c b/src/if_ruby.c index 9c91f3177..bf7aa1aae 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -1262,7 +1262,7 @@ static VALUE vim_blob(VALUE self UNUSED, VALUE str) for (i = 0; i < RSTRING_LEN(str); i++) { sprintf(buf, "%02X", RSTRING_PTR(str)[i]); - rb_str_concat(result, rb_str_new_cstr(buf)); + rb_str_concat(result, rb_str_new2(buf)); } return result; } diff --git a/src/version.c b/src/version.c index 729f65017..114539abb 100644 --- a/src/version.c +++ b/src/version.c @@ -783,6 +783,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 848, /**/ 847, /**/