Fossil SCM

Fix two problems in the ZIP downloader, as reported by ticket [e28adcd72503a].

drh 2008-11-27 13:25 trunk
Commit 39bbc6010ed25df3d8d3e70311d04d45bd8e1f99
1 file changed +1 -2
+1 -2
--- src/zip.c
+++ src/zip.c
@@ -73,11 +73,11 @@
7373
m = atoi(&zDate[5]);
7474
d = atoi(&zDate[8]);
7575
H = atoi(&zDate[11]);
7676
M = atoi(&zDate[14]);
7777
S = atoi(&zDate[17]);
78
- dosTime = (H<<11) + (M<<5) + S;
78
+ dosTime = (H<<11) + (M<<5) + (S>>1);
7979
dosDate = ((y-1980)<<9) + (m<<5) + d;
8080
}
8181
8282
/*
8383
** Set the date and time from a julian day number.
@@ -378,7 +378,6 @@
378378
zip_of_baseline(rid, &zip, zName);
379379
free( zName );
380380
free( zRid );
381381
cgi_set_content(&zip);
382382
cgi_set_content_type("application/zip");
383
- cgi_reply();
384383
}
385384
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button