melib/parser: fix minor encoded word error

async
Manos Pitsidianakis 2020-02-08 13:45:24 +02:00
parent 6afac835e0
commit 6b7dea35dc
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 1 deletions

View File

@ -929,7 +929,7 @@ pub fn phrase(input: &[u8]) -> IResult<&[u8], Vec<u8>> {
/* We have the start of an encoded word but not the end, so parse it as ascii */
ascii_e = input[ascii_s..]
.find(b" ")
.unwrap_or_else(|| input[ascii_s..].len());
.unwrap_or_else(|| ascii_s + input[ascii_s..].len());
ptr = ascii_e;
}