]> 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>
Wed, 17 Aug 2016 15:22:34 +0000 (18:22 +0300)
src/lib-mail/message-snippet.c

index d187538a79ba872c4a334d3faf781b81da3efff6..09c393c04b9940822971f2caaee14cf813581035 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;
                        }