Check-in [39bbc6010e]
Not logged in
Overview

SHA1 Hash:39bbc6010ed25df3d8d3e70311d04d45bd8e1f99
Date: 2008-11-27 13:25:58
User: drh
Comment:Fix two problems in the ZIP downloader, as reported by ticket e28adcd72503a.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/zip.c from [df3f3d2e39] to [f641ace2a3].

@@ -73,11 +73,11 @@
   m = atoi(&zDate[5]);
   d = atoi(&zDate[8]);
   H = atoi(&zDate[11]);
   M = atoi(&zDate[14]);
   S = atoi(&zDate[17]);
-  dosTime = (H<<11) + (M<<5) + S;
+  dosTime = (H<<11) + (M<<5) + (S>>1);
   dosDate = ((y-1980)<<9) + (m<<5) + d;
 }
 
 /*
 ** Set the date and time from a julian day number.
@@ -378,7 +378,6 @@
   zip_of_baseline(rid, &zip, zName);
   free( zName );
   free( zRid );
   cgi_set_content(&zip);
   cgi_set_content_type("application/zip");
-  cgi_reply();
 }