Permalink
Browse files

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

  • Loading branch information...
1 parent eeae653 commit e8b1ff88461f8b4eb303e5435079f00b40159af2 Tom Robinson committed Nov 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 Objective-J/utilities.js
View
@@ -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

0 comments on commit e8b1ff8

Please sign in to comment.