X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/a85c067ba6c6940512cf57ec213277a370d87e70..107077d7fd6736711bf5cd980221723401d37c51:/src/src/imap_utf7.c diff --git a/src/src/imap_utf7.c b/src/src/imap_utf7.c index 75ecb1a4b..9d7665971 100644 --- a/src/src/imap_utf7.c +++ b/src/src/imap_utf7.c @@ -1,6 +1,7 @@ +/* Copyright (c) The Exim Maintainers 2023 */ /* Copyright (c) University of Cambridge 1995 - 2018 */ /* See the file NOTICE for conditions of use and distribution. */ -/* SPDX-License-Identifier: GPL-2.0-only */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ #include "exim.h" @@ -200,9 +201,7 @@ iconv_close(icd); #endif yield = string_catn(yield, outbuf, outptr - outbuf); - -if (yield->s[yield->ptr-1] == '.') - yield->ptr--; +gstring_trim_trailing(yield, '.'); return string_from_gstring(yield); }