]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: translation_buf_decode() - Fix comments
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 20 Mar 2026 22:12:40 +0000 (00:12 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 23 Mar 2026 08:31:47 +0000 (08:31 +0000)
src/lib-mail/message-decoder.c

index b51a3aa57591ad0fc94af9626f43d9592ab462a6..d1b6591f5d426bee091baf36885254e0c577816d 100644 (file)
@@ -241,11 +241,11 @@ static void translation_buf_decode(struct message_decoder_context *ctx,
                   Handle this the same as if more input was processed. */
        } else if (trans_size > 0) {
                /* We get here when:
-                  1. Incomplete sequence has been sent to charset_to_utf()
+                  1. Incomplete sequence has been sent to charset_to_utf8()
                      previously, e.g. 3 bytes for a utf-32be character.
                   2. We have 1 new byte to complete the character, which
                      is found to be invalid.
-                  3. charset_to_utf() internally skips 1 byte, hoping to find
+                  3. charset_to_utf8() internally skips 1 byte, hoping to find
                      valid output from the next byte. But now we again have
                      only 3 bytes left, so the input is incomplete to get
                      forward.