--- alpine-0.999/imap/src/c-client/mail.c +++ alpine-0.999/imap/src/c-client/mail.c @@ -2795,8 +2795,10 @@ /* parse time */ d = strtoul (s+1,(char **) &s,10); if (*s != ':') return NIL; - m = strtoul (++s,(char **) &s,10); - y = (*s == ':') ? strtoul (++s,(char **) &s,10) : 0; + s++; + m = strtoul (s,(char **) &s,10); + s++; + y = (*s == ':') ? strtoul (s,(char **) &s,10) : 0; /* validity check time */ if ((d > 23) || (m > 59) || (y > 60)) return NIL; /* set values in elt */