From 90487384f77d916ab2dbe495b46bdf5182fb875a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu>
Date: Mon, 30 Mar 2015 16:24:03 +0200
Subject: [PATCH] initializing some variables

---
 lib/private/files/stream/encryption.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index 40cbc1c141a..62b2ad9d9af 100644
--- a/lib/private/files/stream/encryption.php
+++ b/lib/private/files/stream/encryption.php
@@ -270,6 +270,7 @@ class Encryption extends Wrapper {
 
 		if ($this->position === 0) {
 			$this->writeHeader();
+			$this->size+=$this->util->getBlockSize();
 		}
 
 		$length = 0;
-- 
GitLab