Skip to content

Commit b191be2

Browse files
committed
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)
1 parent 9172d23 commit b191be2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/if_ruby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ static VALUE vim_blob(VALUE self UNUSED, VALUE str)
12621262
for (i = 0; i < RSTRING_LEN(str); i++)
12631263
{
12641264
sprintf(buf, "%02X", RSTRING_PTR(str)[i]);
1265-
rb_str_concat(result, rb_str_new_cstr(buf));
1265+
rb_str_concat(result, rb_str_new2(buf));
12661266
}
12671267
return result;
12681268
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,8 @@ static char *(features[]) =
783783

784784
static int included_patches[] =
785785
{ /* Add new patch number below this line */
786+
/**/
787+
848,
786788
/**/
787789
847,
788790
/**/

0 commit comments

Comments
 (0)