]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/imap_utf7.c
Debug old ehlo-resp record date, on noting mismatch
[user/henk/code/exim.git] / src / src / imap_utf7.c
index 75ecb1a4b8e346af220a182a84ad15ac998f8dc7..6c9b5c17926d65768c2e39f282228206f2ee7df4 100644 (file)
@@ -1,6 +1,6 @@
 /* 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 +200,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);
 }