diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-04 12:14:47 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-04 12:14:47 +0000 |
| commit | ce1ed4a40db855af3842d29ef304cf9aecd4a5c1 (patch) | |
| tree | 018deed4b2968106270fc9c10346f42c768ee7ff /time.c | |
| parent | f7eadd68d24f4ba3ed1fd310d6205882ef32e643 (diff) | |
| download | ruby-ce1ed4a40db855af3842d29ef304cf9aecd4a5c1.tar.gz ruby-ce1ed4a40db855af3842d29ef304cf9aecd4a5c1.tar.xz ruby-ce1ed4a40db855af3842d29ef304cf9aecd4a5c1.zip | |
* time.c (time_strftime): include nul character. fixed: [ruby-dev:29422]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
| -rw-r--r-- | time.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1860,7 +1860,7 @@ time_strftime(time, format) while (p < pe) { len = rb_strftime(&buf, p, &tobj->tm); rb_str_cat(str, buf, len); - p += strlen(p) + 1; + p += strlen(p); if (buf != buffer) { free(buf); buf = buffer; |
