diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-11-27 14:23:35 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-11-27 17:42:11 +0200 |
commit | 58209d6f6bc68d5734076e9973fc14d2fefb2d23 (patch) | |
tree | 5f0d40f61e60e34f435a180ebd4c42f75bd91713 /melib/src/email/parser.rs | |
parent | ba52c59859e29d9ec5f22dc5c7a18e959558ad49 (diff) |
Replace some panics with errors
Diffstat (limited to 'melib/src/email/parser.rs')
-rw-r--r-- | melib/src/email/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/melib/src/email/parser.rs b/melib/src/email/parser.rs index 67c7308f..7108d396 100644 --- a/melib/src/email/parser.rs +++ b/melib/src/email/parser.rs @@ -901,7 +901,7 @@ pub fn phrase(input: &[u8]) -> IResult<&[u8], Vec<u8>> { ); break; } - if ascii_s == ascii_e { + if ascii_s >= ascii_e { /* We have the start of an encoded word but not the end, so parse it as ascii */ ascii_e = input[ascii_s..] .find(b" ") |