X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/18cda350fe80c2226684f9660f2956869552b317..1c8f3db88212b2f4a5f79122af84f76b2c60da01:/server/cgi.c 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)