Skip to content

Commit

Permalink
Enforce literals on the second arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 13, 2022
1 parent 7e4ac43 commit 7e97ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion string.c
Expand Up @@ -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)
Expand Down

0 comments on commit 7e97ebb

Please sign in to comment.