fixed calculation of base64 array length

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@143 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Pavol Rusnak 2009-06-17 19:00:23 +00:00
parent c78b8b6a52
commit 2be195c275
2 changed files with 2 additions and 1 deletions

1
README
View File

@ -14,6 +14,7 @@ Copyright (c) 2009 John Resig
jQuery js-Hotkeys
http://code.google.com/p/js-hotkeys/
Copyright (c) 2008 Tzury Bar Yochay
jPicker
http://www.digitalmagicpro.com/jPicker/

View File

@ -812,7 +812,7 @@ var Utils = {
"encode64" : function(input) {
// base64 strings are 4/3 larger than the original string
var output = new Array(parseInt(input.length*4/3));
var output = new Array( Math.floor( (input.length + 2) / 3 ) * 4 );
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0, p = 0;