aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/preamble.js b/src/preamble.js
index e7cbcce6..8cf87bfd 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -588,11 +588,10 @@ if (!this['read']) {
function readBinary(filename) {
var stringy = read(filename);
- var data = new Array(stringy.length+1);
+ var data = new Array(stringy.length);
for (var i = 0; i < stringy.length; i++) {
data[i] = stringy.charCodeAt(i) & 0xff;
}
- data[stringy.length] = 0;
return data;
}