Skip to content

Commit

Permalink
lib-mail: Compiling fix for message-snippet change - U'x' isn't stand…
Browse files Browse the repository at this point in the history
…ard.
  • Loading branch information
sirainen committed Aug 16, 2016
1 parent d5db0fd commit 099737f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib-mail/message-snippet.c
Expand Up @@ -55,8 +55,8 @@ static bool snippet_generate(struct snippet_context *ctx,
/* fallthrough */
case SNIPPET_STATE_NORMAL:
if (size-i >= 3 &&
((data[i] == U'\xEF' && data[i+1] == U'\xBB' && data[i+2] == U'\xBF') ||
(data[i] == U'\xBF' && data[i+1] == U'\xBB' && data[i+2] == U'\xEF'))) {
((data[i] == 0xEF && data[i+1] == 0xBB && data[i+2] == 0xBF) ||
(data[i] == 0xBF && data[i+1] == 0xBB && data[i+2] == 0xEF))) {
count += 2; /* because we skip +1 next */
break;
}
Expand Down

0 comments on commit 099737f

Please sign in to comment.