X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/18cda350fe80c2226684f9660f2956869552b317..a05e4467dee55248f2135dcb532b4729154d69c5:/server/cgi.c?ds=inline diff --git a/server/cgi.c b/server/cgi.c index 37ac724..2189532 100644 --- a/server/cgi.c +++ b/server/cgi.c @@ -225,7 +225,7 @@ char *cgi_sgmlquote(const char *s, int raw) { int n; if(!raw) { - if(!(ucs = utf82ucs4(s))) exit(EXIT_FAILURE); + if(!(ucs = utf8_to_utf32(s, strlen(s), 0))) exit(EXIT_FAILURE); } else { ucs = xmalloc_noptr((strlen(s) + 1) * sizeof(uint32_t)); for(n = 0; s[n]; ++n)