diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-22 07:08:41 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-22 07:08:41 +0000 |
commit | 90ff69911ae93fc5b6c32fee9d4d77cfcba14124 (patch) | |
tree | 0943249ed947f84b6c3407ed3cda59608a9d585a | |
parent | 60ab3830c1843f1fa2ca91d964d8f1f97591ad74 (diff) | |
download | ruby-90ff69911ae93fc5b6c32fee9d4d77cfcba14124.tar.gz ruby-90ff69911ae93fc5b6c32fee9d4d77cfcba14124.tar.xz ruby-90ff69911ae93fc5b6c32fee9d4d77cfcba14124.zip |
* string.c (rb_enc_cr_str_buf_cat): do not use C++ comment.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |