Another Array().join() trick off-by-one bug.

This commit is contained in:
Tom Robinson committed 2009-11-02 00:37:40 -08:00
1 parent eeae653c94
commit e8b1ff8846
1 file changed
+1 -1
+1 -1
View File
@@ -168,7 +168,7 @@ var _sprintf_justify = function(sign, prefix, string, suffix, width, leftJustify
var _sprintf_pad = function(n, ch)
{
return Array(MAX(0,n)).join(ch);
return Array(MAX(0,n)+1).join(ch);
}
// Base64 encoding and decoding