]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: Compiling fix for message-snippet change - U'x' isn't standard.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 16 Aug 2016 08:05:25 +0000 (11:05 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 16 Aug 2016 08:05:25 +0000 (11:05 +0300)
src/lib-mail/message-snippet.c

index 20e5d0a813b4ee156c3f97b5b44cdd7d30e9f267..b46d2d7ff1a60089182942428dd9ae10242a2832 100644 (file)
@@ -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;
                        }