]> git.kaiwu.me - nginx.git/commitdiff
fix libxml2 error message
authorIgor Sysoev <igor@sysoev.ru>
Fri, 24 Jul 2009 13:32:41 +0000 (13:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 24 Jul 2009 13:32:41 +0000 (13:32 +0000)
src/http/modules/ngx_http_xslt_filter_module.c

index ca9e15dc64b616e94032c501b8d78a4e9d37da5e..cfaa8e1b330370d28fcc328a8bce16f825623e44 100644 (file)
@@ -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);
 }