Comparing version 1.3.2 to 1.3.3
@@ -249,7 +249,5 @@ var raf = require('random-access-file') | ||
// HACK: This is going to blow up our faces when somebody uses UTF-8 and it's | ||
// gonna be great. :D | ||
// TODO: what if the new data is shorter than the old data? things will break! | ||
function writeStringToStorage (string, storage, cb) { | ||
var buf = Buffer.alloc(string.length) | ||
var buf = Buffer.from(string, 'utf8') | ||
storage.write(0, buf, cb) | ||
@@ -256,0 +254,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/multifeed.git" |
18161
449