uschar *
imap_utf7_encode(uschar *string, const uschar *charset, uschar sep,
uschar *
imap_utf7_encode(uschar *string, const uschar *charset, uschar sep,
/* Pass over the string. If it consists entirely of "normal" characters
(possibly with leading seps), return it as is. */
/* Pass over the string. If it consists entirely of "normal" characters
(possibly with leading seps), return it as is. */
slen > 0 && (utf16ptr - utf16buf) < sizeof(utf16buf);
utf16ptr += 2, slen--, sptr++)
{
slen > 0 && (utf16ptr - utf16buf) < sizeof(utf16buf);
utf16ptr += 2, slen--, sptr++)
{
- yield = string_cat(yield, &size, &ptr, outbuf, outptr - outbuf);
+ yield = string_catn(yield, &size, &ptr, outbuf, outptr - outbuf);
-yield = string_cat(yield, &size, &ptr, outbuf, outptr - outbuf);
+yield = string_catn(yield, &size, &ptr, outbuf, outptr - outbuf);