X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Futf8.c;h=8a7cf38a346da35e4c60a07cbc57e3de71a0fe06;hb=d6c82d7b5f5b2adecc6dafe60f0f6c0bec663a8e;hp=7382205598f3681999e4bca2ae5d50c8340a85e0;hpb=921dfc1193791b722844341c3ec97be158042c17;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/utf8.c b/src/src/utf8.c index 738220559..8a7cf38a3 100644 --- a/src/src/utf8.c +++ b/src/src/utf8.c @@ -89,7 +89,7 @@ res = store_get(p_len+5); res[0] = 'x'; res[1] = 'n'; res[2] = res[3] = '-'; -if ((rc = punycode_encode(ucs4_len, p, NULL, &p_len, res+4)) != PUNYCODE_SUCCESS) +if ((rc = punycode_encode(ucs4_len, p, NULL, &p_len, CS res+4)) != PUNYCODE_SUCCESS) { DEBUG(D_expand) debug_printf("l_u2a: bad '%s'\n", punycode_strerror(rc)); free(p); @@ -106,7 +106,7 @@ return res; uschar * string_localpart_alabel_to_utf8(const uschar * alabel, uschar ** err) { -size_t p_len = strlen(alabel); +size_t p_len = Ustrlen(alabel); punycode_uint * p; uschar * s; uschar * res; @@ -127,7 +127,7 @@ if ((rc = punycode_decode(p_len, CCS alabel+4, &p_len, p, NULL)) != PUNYCODE_SUC return NULL; } -s = stringprep_ucs4_to_utf8(p, p_len, NULL, &p_len); +s = US stringprep_ucs4_to_utf8(p, p_len, NULL, &p_len); res = string_copyn(s, p_len); free(s); return res;