isdnlog-4.01

- first Y2K-Bug fixed
This commit is contained in:
akool 2000-01-01 15:05:22 +00:00
parent 36718397cc
commit 0168a4f2dd
3 changed files with 19 additions and 5 deletions

View File

@ -1,4 +1,4 @@
## $Id: Makefile.in,v 1.137 1999/12/31 13:57:17 akool Exp $
## $Id: Makefile.in,v 1.138 2000/01/01 15:05:22 akool Exp $
##
## ISDN accounting for isdn4linux.
##
@ -19,6 +19,10 @@
## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
##
## $Log: Makefile.in,v $
## Revision 1.138 2000/01/01 15:05:22 akool
## isdnlog-4.01
## - first Y2K-Bug fixed
##
## Revision 1.137 1999/12/31 13:57:17 akool
## isdnlog-4.00 (Millenium-Edition)
## - Oracle support added by Jan Bolt (Jan.Bolt@t-online.de)
@ -978,7 +982,7 @@ SERVICEFILE = /etc/services
# DON'T EDIT BELOW THIS LINE
######################################################################
VERSION = 4.00
VERSION = 4.01
MANPAGES = isdnlog/callerid.conf.5 isdnlog/isdn.conf.5 \
isdnlog/isdnformat.5 isdnlog/isdnlog.5 isdnlog/isdnlog.8 \

View File

@ -1,4 +1,4 @@
/* $Id: processor.c,v 1.93 1999/12/31 13:30:02 akool Exp $
/* $Id: processor.c,v 1.94 2000/01/01 15:05:23 akool Exp $
*
* ISDN accounting for isdn4linux. (log-module)
*
@ -19,6 +19,10 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: processor.c,v $
* Revision 1.94 2000/01/01 15:05:23 akool
* isdnlog-4.01
* - first Y2K-Bug fixed
*
* Revision 1.93 1999/12/31 13:30:02 akool
* isdnlog-4.00 (Millenium-Edition)
* - Oracle support added by Jan Bolt (Jan.Bolt@t-online.de)
@ -1937,6 +1941,8 @@ static void decode(int chan, register char *p, int type, int version, int tei)
}
else if ((element == 0x29) && (version != VERSION_1TR6)) {
tm.tm_year = strtol(p += 3, NIL, 16);
if (tm.tm_year < 70)
tm.tm_year += 100;
tm.tm_mon = strtol(p += 3, NIL, 16) - 1;
tm.tm_mday = strtol(p += 3, NIL, 16);
tm.tm_hour = strtol(p += 3, NIL, 16);

View File

@ -1,4 +1,4 @@
/* $Id: tools.c,v 1.43 1999/12/31 13:57:20 akool Exp $
/* $Id: tools.c,v 1.44 2000/01/01 15:05:24 akool Exp $
*
* ISDN accounting for isdn4linux. (Utilities)
*
@ -19,6 +19,10 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log: tools.c,v $
* Revision 1.44 2000/01/01 15:05:24 akool
* isdnlog-4.01
* - first Y2K-Bug fixed
*
* Revision 1.43 1999/12/31 13:57:20 akool
* isdnlog-4.00 (Millenium-Edition)
* - Oracle support added by Jan Bolt (Jan.Bolt@t-online.de)
@ -480,7 +484,7 @@ time_t atom(register char *p)
p += 4;
*p = 0;
tm.tm_year = atoi(p1 + 2);
tm.tm_year = atoi(p1) - 1900;
#ifdef DEBUG_1
if (tm.tm_year < 1995) {