]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: unicode-transform - Use UNICODE_NF_STREAM_SAFE_NON_STARTER_LEN instead of literal 30
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 14 Feb 2026 01:25:26 +0000 (02:25 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 18 Feb 2026 09:03:40 +0000 (09:03 +0000)
src/lib/unicode-transform.c

index 0414c8e4d5e69bce748071c14b3ca0680db81371..e416d7509f6fc9b764c2498eab3a7dd58e2cc6ee 100644 (file)
@@ -481,7 +481,7 @@ unicode_nf_cp(struct unicode_nf_context *ctx, uint32_t cp,
        }
 
        ctx->nonstarter_count += ns_lead;
-       if (ctx->nonstarter_count > 30) {
+       if (ctx->nonstarter_count > UNICODE_NF_STREAM_SAFE_NON_STARTER_LEN) {
                ctx->nonstarter_count = ns_trail;
 
                /* Write U+034F COMBINING GRAPHEME JOINER (CGJ)