N°2033 backup : fix corrupted archive for files which size is a multiple of 1024 bytes

This commit is contained in:
Pierre Goiffon
2019-02-20 17:25:34 +01:00
parent 554e9aa205
commit 3356856a5f

View File

@@ -1214,7 +1214,7 @@ class ArchiveTar
$iBufferLen = strlen("$v_buffer");
if ($iBufferLen != $iLen)
{
$iPack = ((int)($iBufferLen / 512) + 1) * 512;
$iPack = ((int)(($iBufferLen - 1) / 512) + 1) * 512;
$sPack = sprintf('a%d', $iPack);
}
else