[Pkg-javascript-commits] [node-yauzl] 03/04: Imported Upstream version 2.0.1
Andrew Kelley
andrewrk-guest at moszumanska.debian.org
Mon Sep 29 18:43:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
andrewrk-guest pushed a commit to branch master
in repository node-yauzl.
commit f76ab91ce2b8e2845a0dd54a5c35f8d1cbd6359c
Author: Andrew Kelley <superjoe30 at gmail.com>
Date: Mon Sep 29 18:35:36 2014 +0000
Imported Upstream version 2.0.1
---
index.js | 7 ++++++-
package.json | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/index.js b/index.js
index 3648c8f..71efbbf 100644
--- a/index.js
+++ b/index.js
@@ -320,7 +320,12 @@ function bufferToString(buffer, start, end, isUtf8) {
if (isUtf8) {
return buffer.toString("utf8", start, end);
} else {
- return cp437_to_utf8.convert(buffer.slice(start, end)).toString("utf8");
+ var slice = buffer.slice(start, end);
+ if (slice.length === 0) {
+ return "";
+ } else {
+ return cp437_to_utf8.convert(slice).toString("utf8");
+ }
}
}
diff --git a/package.json b/package.json
index 39ac5ea..5fd2856 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "yauzl",
- "version": "2.0.0",
+ "version": "2.0.1",
"description": "yet another unzip library for node",
"main": "index.js",
"scripts": {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-yauzl.git
More information about the Pkg-javascript-commits
mailing list