diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-30 07:20:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-30 07:20:28 +0000 |
commit | 6d7e62a7238cfabc30f675002e14734be6c234a3 (patch) | |
tree | 4fbfcaf67c80822fe2ea7b2de20a9c49304aa734 /string.c | |
parent | f90c8a17a208de0ee644e47654d91b2dbb320e63 (diff) | |
download | ruby-6d7e62a7238cfabc30f675002e14734be6c234a3.tar.gz |
string.c: return reallocated pointer
* string.c (str_fill_term): return new pointer reallocated by
filling terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2012,8 +2012,9 @@ str_fill_term(VALUE str, char *s, long len, int termlen) } else { TERM_FILL(s + len, termlen); + return s; } - return s; + return RSTRING_PTR(str); } char * |