forked from aniani/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)
This commit is contained in:
parent
9172d23d05
commit
b191be2f00
@ -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;
|
||||
}
|
||||
|
@ -783,6 +783,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
848,
|
||||
/**/
|
||||
847,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user