aboutsummaryrefslogtreecommitdiffstats
path: root/src/epub.rs
diff options
context:
space:
mode:
authorJames Campos <james.r.campos@gmail.com>2020-06-20 23:44:32 -0700
committerJames Campos <james.r.campos@gmail.com>2020-06-20 23:44:32 -0700
commitdec535da812928d6dc0036e7f4760af17774dcbf (patch)
treec539d22421b097866d65365d11c0d4b25b296829 /src/epub.rs
parent1f5e2fb51c313c7534217735d21becef745928aa (diff)
downloadbk-dec535da812928d6dc0036e7f4760af17774dcbf.tar.gz
misc
Diffstat (limited to 'src/epub.rs')
-rw-r--r--src/epub.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/epub.rs b/src/epub.rs
index d74bd2a..491398b 100644
--- a/src/epub.rs
+++ b/src/epub.rs
@@ -98,7 +98,7 @@ impl Epub {
let doc = Document::parse(&xml).unwrap();
// zip expects unix path even on windows
let rootdir = match path.rfind('/') {
- Some(n) => &path[..n + 1],
+ Some(n) => &path[..=n],
None => "",
};