* library/zipvfs.tcl: Wojciech Kocjan contributed tweaks to my latest
"Frankenstein" patch, which I incorporated.
+2010-12-30 Steve Huntley <stephen.huntley@alum.mit.edu>
+
+ * library/zipvfs.tcl: Wojciech Kocjan contributed tweaks to my latest
+ "Frankenstein" patch, which I incorporated.
+
2010-12-30 Steve Huntley <stephen.huntley@alum.mit.edu>
* pkgIndex.tcl.in, vfs.tcl: Switched "package require Tcl 8.4" statement
set nfd [vfs::memchan]
fconfigure $nfd -translation binary
- zip::Data $zipfd sb data
+ set data [zip::Data $zipfd sb 0]
puts -nonewline $nfd $data
}
}
- set hdr [string range $hdr [expr $pos + 4] [expr $pos + 21]]
+ set hdrlen [string length $hdr]
+ set hdr [string range $hdr [expr $pos + 4] [expr $pos + 21]]
- set seekstart [expr {wide([tell $fd]) + $pos - 512}]
- if {$seekstart < 0} {
- set seekstart 0
+ set pos [expr {wide([tell $fd]) + $pos - $hdrlen}]
+
+ if {$pos < 0} {
+ set pos 0
}
- set pos [expr {$seekstart + $pos}]
binary scan $hdr ssssiis \
cb(ndisk) cb(cdisk) \