Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libutil restore lost overlow check fix.



details:   https://anonhg.NetBSD.org/src/rev/abacd4b230d7
branches:  trunk
changeset: 760026:abacd4b230d7
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 24 15:47:39 2010 +0000

description:
restore lost overlow check fix.

diffstat:

 lib/libutil/parsedate.y |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7a1c06854ae3 -r abacd4b230d7 lib/libutil/parsedate.y
--- a/lib/libutil/parsedate.y   Fri Dec 24 15:29:08 2010 +0000
+++ b/lib/libutil/parsedate.y   Fri Dec 24 15:47:39 2010 +0000
@@ -672,7 +672,7 @@
        return -1;
     oJulian = Julian;
     Julian += Timezone * 60L;
-    if (oJulian > Julian)
+    if (Timezone > 0 && oJulian > Julian)
        return -1;
     oJulian = Julian;
 



Home | Main Index | Thread Index | Old Index