struct tm tms;
time_t t;
while (*buf == ' ' || *buf == '\t')
- buf++;
+ buf++;
if ((int) strlen(buf) < 14)
- return 0;
+ return 0;
memset(&tms, '\0', sizeof(struct tm));
tms.tm_year = (ASCII_DIGIT(buf[2]) * 10) + ASCII_DIGIT(buf[3]);
tms.tm_mon = (ASCII_DIGIT(buf[4]) * 10) + ASCII_DIGIT(buf[5]) - 1;
/*
- * $Id: rfc1738.c,v 1.10 1997/05/26 04:20:40 wessels Exp $
+ * $Id: rfc1738.c,v 1.11 1997/06/04 07:12:24 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
if (buf == NULL || strlen(url) * 3 > bufsize) {
xfree(buf);
bufsize = strlen(url) * 3 + 1;
- buf = xcalloc (bufsize, 1);
+ buf = xcalloc(bufsize, 1);
}
-
for (p = url, q = buf; *p != '\0'; p++, q++) {
do_escape = 0;