diff --git a/src/sprintf.js b/src/sprintf.js index ccb78d8..7e0bfc7 100644 --- a/src/sprintf.js +++ b/src/sprintf.js @@ -22,16 +22,19 @@ } function sprintf(key) { - // `arguments` is not an array, but should be fine for this call - return sprintf_format(sprintf_parse(key), arguments) + var leakGuard = new Array(arguments.length-1) + for (var i=0; i