Fossil

Check-in [39bbc601]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix two problems in the ZIP downloader, as reported by ticket [e28adcd72503a].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:39bbc6010ed25df3d8d3e70311d04d45bd8e1f99
User & Date: drh 2008-11-27 13:25:58
References
2008-11-27
13:26 Fixed ticket [e28adcd7]: "zip.c" has two minor bugs. plus 2 other changes artifact: 0d37aa2b user: drh
Context
2008-11-27
13:33
Change • into • per ticket [2ed0655983b51af6]. check-in: 72e9eb6a user: drh tags: trunk
13:25
Fix two problems in the ZIP downloader, as reported by ticket [e28adcd72503a]. check-in: 39bbc601 user: drh tags: trunk
02:30
Update the version of SQLite used to 3.6.6.2. check-in: f84bfc31 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/zip.c.

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
...
376
377
378
379
380
381
382
383
384

  y = atoi(zDate);
  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;
  dosDate = ((y-1980)<<9) + (m<<5) + d;
}

/*
** Set the date and time from a julian day number.
*/
void zip_set_timedate(double rDate){
................................................................................
  }
  if( nRid==0 && nName>10 ) zName[10] = 0;
  zip_of_baseline(rid, &zip, zName);
  free( zName );
  free( zRid );
  cgi_set_content(&zip);
  cgi_set_content_type("application/zip");
  cgi_reply();
}







|







 







<

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
...
376
377
378
379
380
381
382

383

  y = atoi(zDate);
  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>>1);
  dosDate = ((y-1980)<<9) + (m<<5) + d;
}

/*
** Set the date and time from a julian day number.
*/
void zip_set_timedate(double rDate){
................................................................................
  }
  if( nRid==0 && nName>10 ) zName[10] = 0;
  zip_of_baseline(rid, &zip, zName);
  free( zName );
  free( zRid );
  cgi_set_content(&zip);
  cgi_set_content_type("application/zip");

}