aboutsummaryrefslogtreecommitdiff
path: root/zipstream.php
diff options
context:
space:
mode:
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