]> granicus.if.org Git - vim/commitdiff
patch 8.1.0848: cannot build with Ruby 1.8 v8.1.0848
authorBram Moolenaar <Bram@vim.org>
Wed, 30 Jan 2019 20:00:12 +0000 (21:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 30 Jan 2019 20:00:12 +0000 (21:00 +0100)
Problem:    Cannot build with Ruby 1.8. (Tom G. Christensen)
Solution:   Use rb-str_new2(). (Yasuhiro Matsumoto, closes #3883,
            closes #3884)

src/if_ruby.c
src/version.c

index 9c91f3177cb17b3d7206717e1da4bf135abef9c5..bf7aa1aae0a5159a70913745782580e2deeb4d12 100644 (file)
@@ -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;
 }
index 729f650174be63e0edcd9764c98ed28f76ef01aa..114539abb13fa6281570a2bcd3e7cbfce50be598 100644 (file)
@@ -783,6 +783,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    848,
 /**/
     847,
 /**/