- Two bugs with yesterday's date parsing changes. (1) Need to incrment
past "," after strchr(), and (2) struct tm tm needs to be static
in parse_date2().
/*
- * $Id: rfc1123.c,v 1.26 2000/11/07 23:37:35 wessels Exp $
+ * $Id: rfc1123.c,v 1.27 2000/11/08 20:22:16 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
s = strchr(str, ',');
if (NULL == s)
return NULL;
+ s++;
while (*s == ' ')
s++;
/* backup if month is only one digit */
{
/* Thu, 10 Jan 1993 01:29:59 GMT */
const char *s;
- struct tm tm;
+ static struct tm tm;
assert(NULL != str);
memset(&tm, '\0', sizeof(struct tm));
s = strchr(str, ',');
if (NULL == s)
return NULL;
+ s++;
while (*s == ' ')
s++;
/* backup if month is only one digit */