[or-cvs] Fix parse_iso_time on platforms without strptime.
Nick Mathewson
nickm at seul.org
Mon Dec 6 22:39:12 UTC 2004
Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv1149/src/common
Modified Files:
util.c
Log Message:
Fix parse_iso_time on platforms without strptime.
Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -d -r1.193 -r1.194
--- util.c 2 Dec 2004 04:33:01 -0000 1.193
+++ util.c 6 Dec 2004 22:39:10 -0000 1.194
@@ -662,7 +662,7 @@
hour > 23 || minute > 59 || second > 61) {
log_fn(LOG_WARN, "Published time was nonsensical"); return -1;
}
- st_tm.tm_year = year;
+ st_tm.tm_year = year-1900;
st_tm.tm_mon = month-1;
st_tm.tm_mday = day;
st_tm.tm_hour = hour;
More information about the tor-commits
mailing list