mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Enforce literals on the second arguments
This commit is contained in:
parent
7e4ac434b9
commit
7e97ebb6eb
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -3094,7 +3094,7 @@ str_buf_cat(VALUE str, const char *ptr, long len)
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define str_buf_cat2(str, ptr) str_buf_cat((str), (ptr), strlen(ptr))
|
#define str_buf_cat2(str, ptr) str_buf_cat((str), (ptr), rb_strlen_lit(ptr))
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_str_cat(VALUE str, const char *ptr, long len)
|
rb_str_cat(VALUE str, const char *ptr, long len)
|
||||||
|
|
Loading…
Add table
Reference in a new issue