From: Igor Sysoev Date: Fri, 24 Jul 2009 13:32:41 +0000 (+0000) Subject: fix libxml2 error message X-Git-Tag: release-0.8.7~8 X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=543151b3002dedf2c43a6e26dca08a822ba55190;p=nginx.git fix libxml2 error message --- diff --git a/src/http/modules/ngx_http_xslt_filter_module.c b/src/http/modules/ngx_http_xslt_filter_module.c index ca9e15dc6..cfaa8e1b3 100644 --- a/src/http/modules/ngx_http_xslt_filter_module.c +++ b/src/http/modules/ngx_http_xslt_filter_module.c @@ -720,7 +720,7 @@ ngx_http_xslt_sax_error(void *data, const char *msg, ...) while (--n && (buf[n] == CR || buf[n] == LF)) { /* void */ } ngx_log_error(NGX_LOG_ERR, ctx->request->connection->log, 0, - "libxml2 error: \"%*s\"", n, buf); + "libxml2 error: \"%*s\"", n + 1, buf); }