Fossil SCM
Fix two problems in the ZIP downloader, as reported by ticket [e28adcd72503a].
Commit
39bbc6010ed25df3d8d3e70311d04d45bd8e1f99
Parent
f84bfc31bfa09aa…
1 file changed
+1
-2
+1
-2
| --- src/zip.c | ||
| +++ src/zip.c | ||
| @@ -73,11 +73,11 @@ | ||
| 73 | 73 | m = atoi(&zDate[5]); |
| 74 | 74 | d = atoi(&zDate[8]); |
| 75 | 75 | H = atoi(&zDate[11]); |
| 76 | 76 | M = atoi(&zDate[14]); |
| 77 | 77 | S = atoi(&zDate[17]); |
| 78 | - dosTime = (H<<11) + (M<<5) + S; | |
| 78 | + dosTime = (H<<11) + (M<<5) + (S>>1); | |
| 79 | 79 | dosDate = ((y-1980)<<9) + (m<<5) + d; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /* |
| 83 | 83 | ** Set the date and time from a julian day number. |
| @@ -378,7 +378,6 @@ | ||
| 378 | 378 | zip_of_baseline(rid, &zip, zName); |
| 379 | 379 | free( zName ); |
| 380 | 380 | free( zRid ); |
| 381 | 381 | cgi_set_content(&zip); |
| 382 | 382 | cgi_set_content_type("application/zip"); |
| 383 | - cgi_reply(); | |
| 384 | 383 | } |
| 385 | 384 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -73,11 +73,11 @@ | |
| 73 | m = atoi(&zDate[5]); |
| 74 | d = atoi(&zDate[8]); |
| 75 | H = atoi(&zDate[11]); |
| 76 | M = atoi(&zDate[14]); |
| 77 | S = atoi(&zDate[17]); |
| 78 | dosTime = (H<<11) + (M<<5) + S; |
| 79 | dosDate = ((y-1980)<<9) + (m<<5) + d; |
| 80 | } |
| 81 | |
| 82 | /* |
| 83 | ** Set the date and time from a julian day number. |
| @@ -378,7 +378,6 @@ | |
| 378 | zip_of_baseline(rid, &zip, zName); |
| 379 | free( zName ); |
| 380 | free( zRid ); |
| 381 | cgi_set_content(&zip); |
| 382 | cgi_set_content_type("application/zip"); |
| 383 | cgi_reply(); |
| 384 | } |
| 385 |
| --- src/zip.c | |
| +++ src/zip.c | |
| @@ -73,11 +73,11 @@ | |
| 73 | m = atoi(&zDate[5]); |
| 74 | d = atoi(&zDate[8]); |
| 75 | H = atoi(&zDate[11]); |
| 76 | M = atoi(&zDate[14]); |
| 77 | S = atoi(&zDate[17]); |
| 78 | dosTime = (H<<11) + (M<<5) + (S>>1); |
| 79 | dosDate = ((y-1980)<<9) + (m<<5) + d; |
| 80 | } |
| 81 | |
| 82 | /* |
| 83 | ** Set the date and time from a julian day number. |
| @@ -378,7 +378,6 @@ | |
| 378 | zip_of_baseline(rid, &zip, zName); |
| 379 | free( zName ); |
| 380 | free( zRid ); |
| 381 | cgi_set_content(&zip); |
| 382 | cgi_set_content_type("application/zip"); |
| 383 | } |
| 384 |