diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-02-27 19:00:00 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-02-27 19:00:00 -0500 |
commit | 86b4d41a7463bd35cf662fc748aa338caef609c9 (patch) | |
tree | db4ba2deed8edca7df91182c0253ee93248c7382 /WWW/Library/Implementation/HTFTP.c | |
parent | 899516a7c8880df05e30bbbed72ca1d3cb7a4f00 (diff) | |
download | lynx-snapshots-86b4d41a7463bd35cf662fc748aa338caef609c9.tar.gz |
snapshot of project "lynx", label v2-7-1ac-0_117
Diffstat (limited to 'WWW/Library/Implementation/HTFTP.c')
-rw-r--r-- | WWW/Library/Implementation/HTFTP.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c index 245e515a..8c014f76 100644 --- a/WWW/Library/Implementation/HTFTP.c +++ b/WWW/Library/Implementation/HTFTP.c @@ -1746,7 +1746,7 @@ PRIVATE void parse_windows_nt_dir_entry ARGS2( } if (strlen(cp) == 8 && isdigit(*cp) && isdigit(*(cp+1)) && *(cp+2) == '-' && - isdigit(*(cp+3)) && isdigit(*(cp+1)) && *(cp+5) == '-') { + isdigit(*(cp+3)) && isdigit(*(cp+4)) && *(cp+5) == '-') { *(cp+2) = '\0'; /* Month */ i = atoi(cp) - 1; *(cp+5) = '\0'; /* Day */ @@ -1756,12 +1756,10 @@ PRIVATE void parse_windows_nt_dir_entry ARGS2( cp += 6; /* Year */ if (strcmp((ThisYear+2), cp)) { /* Not this year, so show the year */ - if (atoi(cp) < atoi((char *)&ThisYear[2])) { - sprintf((char *)&date[6], " %c%c%s", - ThisYear[0], ThisYear[1], cp); + if (atoi(cp) < 70) { + sprintf((char *)&date[6], " 20%s", cp); } else { - sprintf((char *)&date[6], " %c%c%s", - LastYear[0], LastYear[1], cp); + sprintf((char *)&date[6], " 19%s", cp); } } else { /* Is this year, so show the time */ @@ -1936,12 +1934,10 @@ PRIVATE void parse_cms_dir_entry ARGS2( cpd += 6; /* Year */ if (strcmp((ThisYear+2), cpd)) { /* Not this year, so show the year. */ - if (atoi(cpd) < atoi((char *)&ThisYear[2])) { - sprintf((char *)&date[6], " %c%c%s", - ThisYear[0], ThisYear[1], cpd); + if (atoi(cpd) < 70) { + sprintf((char *)&date[6], " 20%s", cpd); } else { - sprintf((char *)&date[6], " %c%c%s", - LastYear[0], LastYear[1], cpd); + sprintf((char *)&date[6], " 19%s", cpd); } } else { /* Is this year, so show the time. */ |