summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernd <bernd@bzed.de>2007-03-06 01:59:40 +0100
committerbernd <bernd@bzed.de>2007-03-06 01:59:40 +0100
commit744d79e3d526f4fcd64031ed6eb63d91b3c36de4 (patch)
tree3bb11ab09e49651c20f06105f87ae3680cc22da6
parentdb09e31e6f0b665e3638f37ca0c5b0890dfcc5a9 (diff)
downloadrpg-744d79e3d526f4fcd64031ed6eb63d91b3c36de4.tar.gz
rpg-744d79e3d526f4fcd64031ed6eb63d91b3c36de4.tar.bz2
FS#1011-fix
darcs-hash:20070306005940-9f3ed-ac84cbb540ec7830aedba5b3451e58522decfffa.gz
-rw-r--r--inc/ZipLib.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/ZipLib.class.php b/inc/ZipLib.class.php
index 767d324a9..3b39ad1b6 100644
--- a/inc/ZipLib.class.php
+++ b/inc/ZipLib.class.php
@@ -239,7 +239,8 @@ class ZipLib
while ($pos < $size)
{
- $byte = @fread($zip, 1); $bytes=($bytes << 8) | Ord($byte);
+ $byte = @fread($zip, 1);
+ $bytes=(($bytes << 8) & 0xFFFFFFFF) | Ord($byte);
if ($bytes == 0x504b0506){ $pos++; break; } $pos++;
}