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

* time.c (time_strftime): include nul character. fixed: [ruby-dev:29422]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2006-09-04 12:14:47 +00:00
parent 5b93abf50e
commit 448154a7da
2 changed files with 5 additions and 1 deletions

View file

@ -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.

2
time.c
View file

@ -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;