diff --git a/ChangeLog b/ChangeLog index 41b9052c05..d74fbba50d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 4 23:08:48 2008 Nobuyoshi Nakada + + * time.c (time_arg): use converted object. [ruby-core:14759] + Fri Jan 4 16:24:58 2008 Tanaka Akira * ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): use diff --git a/time.c b/time.c index 0f34cf5e58..72ed7c9d15 100644 --- a/time.c +++ b/time.c @@ -419,7 +419,7 @@ time_arg(int argc, VALUE *argv, struct tm *tm, long *nsec) tm->tm_mon = -1; for (i=0; i<12; i++) { if (RSTRING_LEN(s) == 3 && - STRCASECMP(months[i], RSTRING_PTR(v[1])) == 0) { + STRCASECMP(months[i], RSTRING_PTR(s)) == 0) { tm->tm_mon = i; break; }