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 | a419b1dd33d0ab724f51098654699af0e895c3ec (patch) | |
| tree | 95bc70bced8ef880f1152f5cf97c11db8b93af97 | |
| parent | 662325161452172a99656fb2507bae3594d54e0f (diff) | |
| download | ruby-a419b1dd33d0ab724f51098654699af0e895c3ec.tar.gz ruby-a419b1dd33d0ab724f51098654699af0e895c3ec.tar.xz ruby-a419b1dd33d0ab724f51098654699af0e895c3ec.zip | |
* time.c (time_strftime): include nul character. fixed: [ruby-dev:29422]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | time.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Sep 4 21:14:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * time.c (time_strftime): include nul character. fixed: [ruby-dev:29422] + Mon Sep 4 16:39:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * lib/cgi.rb (CGI::out): specify -x option for nkf. @@ -1886,7 +1886,7 @@ time_strftime(VALUE time, VALUE 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; |
