diff --git a/ChangeLog b/ChangeLog index 899b9f6edf..cae1f7c322 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 23 13:24:18 2003 Yukihiro Matsumoto + + * time.c (time_arg): was accessing garbage argv value. + Thu Jan 23 06:37:01 2003 Nobuyoshi Nakada * instruby.rb: should not contain destdir in shebang line. diff --git a/time.c b/time.c index 310530f2c0..ffad741658 100644 --- a/time.c +++ b/time.c @@ -313,7 +313,7 @@ time_arg(argc, argv, tm, usec) if (argc == 8) { /* v[6] is timezone, but ignored */ } - else { + else if (argc == 7) { *usec = obj2long(v[6]); } }