Fixed invalid parsing of text-mode received SMS timestamp
authorshort <>
Sat, 26 May 2001 06:53:06 +0000 (06:53 +0000)
committershort <>
Sat, 26 May 2001 06:53:06 +0000 (06:53 +0000)
 - bugreported by Massimo Chieruzzi <zcool@sandlab.org>

mdsms.c

diff --git a/mdsms.c b/mdsms.c
index 21d6999..700cdc9 100644 (file)
--- a/mdsms.c
+++ b/mdsms.c
@@ -1634,8 +1634,6 @@ int i;
        memset(&tm,0,sizeof(tm)); /* may be redundant */
        for (i=0;i<NELEM(timeparse);i++)
                GETTIME(i)=DIGIT2ASC(s+timeparse[i].strpos);
        memset(&tm,0,sizeof(tm)); /* may be redundant */
        for (i=0;i<NELEM(timeparse);i++)
                GETTIME(i)=DIGIT2ASC(s+timeparse[i].strpos);
-       if (tm.tm_year<70) tm.tm_year+=100;
-       tm.tm_mon--;
        maketime(s+2);
        return(1);
 #undef DIGIT2ASC
        maketime(s+2);
        return(1);
 #undef DIGIT2ASC