]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: http_serve_file() fix tvherror - intlconv
authorJaroslav Kysela <perex@perex.cz>
Wed, 14 Feb 2018 12:31:18 +0000 (13:31 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 14 Feb 2018 12:31:18 +0000 (13:31 +0100)
src/webui/webui.c

index e55ed8d576d99c72012e4966d430ecd54d243859..a71a249972cd63cbc0558ca6f823cf43a2e7db13 100644 (file)
@@ -1477,7 +1477,7 @@ http_serve_file(http_connection_t *hc, const char *fname,
                                   basename, strlen(basename) * 3);
       if (str0 == NULL) {
         tvherror(LS_HTTP, "unable to convert filename '%s' to a safe form using charset '%s'",
-                 intlconv_charset_id("ASCII", 1, 1), basename);
+                 basename, intlconv_charset_id("ASCII", 1, 1));
         return HTTP_STATUS_INTERNAL;
       }
       htsbuf_queue_init(&q, 0);