1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_enc_cr_str_buf_cat): do not use C++ comment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2008-04-22 07:08:41 +00:00
parent 31049a6fd6
commit 322d8dfb0e

View file

@ -1578,7 +1578,7 @@ rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
}
memcpy(RSTRING_PTR(str) + RSTRING_LEN(str), ptr, len);
STR_SET_LEN(str, total);
RSTRING_PTR(str)[total] = '\0'; // sentinel
RSTRING_PTR(str)[total] = '\0'; /* sentinel */
ENCODING_CODERANGE_SET(str, res_encindex, res_cr);
return str;