aboutsummaryrefslogtreecommitdiff
path: root/zipstream.php
diff options
context:
space:
mode:
authorpabs <pabs@pablotron.org>2007-08-23 01:41:11 -0400
committerpabs <pabs@pablotron.org>2007-08-23 01:41:11 -0400
commite0b5f7d9f2710d75fd0b64ce0d234d32032240ed (patch)
tree25a21d0cff39b312b107213c9aad6847b6a3595a /zipstream.php
parent53c7d09132d275b524b0540b8c6df00c849c4dae (diff)
downloadzipstream-php-e0b5f7d9f2710d75fd0b64ce0d234d32032240ed.tar.bz2
zipstream-php-e0b5f7d9f2710d75fd0b64ce0d234d32032240ed.zip
fix filename length in cdr recs.
Diffstat (limited to 'zipstream.php')
-rw-r--r--zipstream.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/zipstream.php b/zipstream.php
index ec3c407..243708c 100644
--- a/zipstream.php
+++ b/zipstream.php
@@ -135,7 +135,7 @@ class ZipStream {
array('V', $crc), # crc32 of data
array('V', $zlen), # compressed data length
array('V', $len), # uncompressed data length
- array('v', $nlen), # filename length
+ array('v', strlen($name)), # filename length
array('v', 0), # extra data len
array('v', 0), # file comment length
array('v', 0), # disk number start