summaryrefslogtreecommitdiff
path: root/lib/buffer.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-10-18 11:15:20 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-10-18 11:34:35 -0700
commitcf1db4f3043fce0474c421dc547b8bd2f9616354 (patch)
tree13928e0f1d2749c756164119015502ef67c53a9c /lib/buffer.js
parentccf2a04ea2b004af58a2e599965b08e94bbe47d3 (diff)
downloadnode-cf1db4f3043fce0474c421dc547b8bd2f9616354.tar.gz
base64 decode should handle whitespace
Diffstat (limited to 'lib/buffer.js')
-rw-r--r--lib/buffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/buffer.js b/lib/buffer.js
index ecb25b7e5..e5539581d 100644
--- a/lib/buffer.js
+++ b/lib/buffer.js
@@ -145,7 +145,7 @@ function Buffer (subject, encoding, offset) {
}
} else if (type == 'string') {
// We are a string
- this.write(subject, 0, encoding);
+ this.length = this.write(subject, 0, encoding);
}
}