summaryrefslogtreecommitdiff
path: root/ext/zip
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip')
-rw-r--r--ext/zip/zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zip/zip.c b/ext/zip/zip.c
index f5bf798ba4..7efb16db7b 100644
--- a/ext/zip/zip.c
+++ b/ext/zip/zip.c
@@ -285,7 +285,7 @@ PHP_FUNCTION(zip_entry_read)
if (ret == 0) {
RETURN_FALSE;
} else {
- RETURN_STRINGL(buf, len, 0);
+ RETURN_STRINGL(buf, ret, 0);
}
}
/* }}} */