Enforce literals on the second arguments
This commit is contained in:
parent
7e4ac434b9
commit
7e97ebb6eb
2
string.c
2
string.c
@ -3094,7 +3094,7 @@ str_buf_cat(VALUE str, const char *ptr, long len)
|
||||
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
|
||||
rb_str_cat(VALUE str, const char *ptr, long len)
|
||||
|
Loading…
x
Reference in New Issue
Block a user