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

* ext/win32ole/win32ole.c (date2time_str): fix the overflow in

some situation. [ruby-bugs-20793]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@17642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
suke 2008-06-28 23:05:16 +00:00
parent 3a13716c45
commit 803893b8e1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Jun 29 08:03:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
* ext/win32ole/win32ole.c (date2time_str): fix the overflow in
some situation. [ruby-bugs-20793]
Sun Jun 29 00:13:06 2008 Tanaka Akira <akr@fsij.org>
* eval.c (rb_obj_respond_to): use RTEST to test the result of

View file

@ -459,7 +459,7 @@ date2time_str(date)
double date;
{
int y, m, d, hh, mm, ss;
char szTime[20];
char szTime[40];
double2time(date, &y, &m, &d, &hh, &mm, &ss);
sprintf(szTime,
"%4.4d/%02.2d/%02.2d %02.2d:%02.2d:%02.2d",